summaryrefslogtreecommitdiffstats
path: root/app/channel.go
diff options
context:
space:
mode:
Diffstat (limited to 'app/channel.go')
-rw-r--r--app/channel.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/channel.go b/app/channel.go
index 1e48c3c50..4dcab83ee 100644
--- a/app/channel.go
+++ b/app/channel.go
@@ -726,13 +726,16 @@ func (a *App) DeleteChannel(channel *model.Channel, userId string) *model.AppErr
}
}
- if dresult := <-a.Srv.Store.Channel().Delete(channel.Id, model.GetMillis()); dresult.Err != nil {
+ deleteAt := model.GetMillis()
+
+ if dresult := <-a.Srv.Store.Channel().Delete(channel.Id, deleteAt); dresult.Err != nil {
return dresult.Err
}
a.InvalidateCacheForChannel(channel)
message := model.NewWebSocketEvent(model.WEBSOCKET_EVENT_CHANNEL_DELETED, channel.TeamId, "", "", nil)
message.Add("channel_id", channel.Id)
+ message.Add("delete_at", deleteAt)
a.Publish(message)
}