summaryrefslogtreecommitdiffstats
path: root/app/channel.go
diff options
context:
space:
mode:
Diffstat (limited to 'app/channel.go')
-rw-r--r--app/channel.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/channel.go b/app/channel.go
index 4b606ac27..55a5008d4 100644
--- a/app/channel.go
+++ b/app/channel.go
@@ -386,6 +386,12 @@ func (a *App) UpdateChannelPrivacy(oldChannel *model.Channel, user *model.User)
return channel, err
}
+ a.InvalidateCacheForChannel(channel)
+
+ messageWs := model.NewWebSocketEvent(model.WEBSOCKET_EVENT_CHANNEL_CONVERTED, channel.TeamId, "", "", nil)
+ messageWs.Add("channel_id", channel.Id)
+ a.Publish(messageWs)
+
return channel, nil
}
}