diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/channel.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/channel.go b/app/channel.go index 84be8557b..794379369 100644 --- a/app/channel.go +++ b/app/channel.go @@ -281,6 +281,11 @@ func UpdateChannel(channel *model.Channel) (*model.Channel, *model.AppError) { return nil, result.Err } else { InvalidateCacheForChannel(channel) + + messageWs := model.NewWebSocketEvent(model.WEBSOCKET_EVENT_CHANNEL_UPDATED, "", channel.Id, "", nil) + messageWs.Add("channel", channel.ToJson()) + Publish(messageWs) + return channel, nil } } |