From 748a416961923932e9b2969beb2730ee8c240ea7 Mon Sep 17 00:00:00 2001 From: enahum Date: Thu, 23 Feb 2017 11:08:48 -0300 Subject: =?UTF-8?q?PLT-3193=20Add=20channel=20notification=20preferences?= =?UTF-8?q?=20for=20push=20and=20email=20noti=E2=80=A6=20(#5500)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * PLT-3193 Add channel notification preferences for push and email notifications * unit tests, model validation and localization * Feedback review * Adding back allowFromCache check * Setting push and email to use default settings * Move props as constants * address feedback --- app/web_hub.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'app/web_hub.go') diff --git a/app/web_hub.go b/app/web_hub.go index b4a8a4140..a214ffb5e 100644 --- a/app/web_hub.go +++ b/app/web_hub.go @@ -134,6 +134,18 @@ func InvalidateCacheForChannelMembersSkipClusterSend(channelId string) { Srv.Store.Channel().InvalidateMemberCount(channelId) } +func InvalidateCacheForChannelMembersNotifyProps(channelId string) { + InvalidateCacheForChannelMembersNotifyPropsSkipClusterSend(channelId) + + if cluster := einterfaces.GetClusterInterface(); cluster != nil { + cluster.InvalidateCacheForChannelMembersNotifyProps(channelId) + } +} + +func InvalidateCacheForChannelMembersNotifyPropsSkipClusterSend(channelId string) { + Srv.Store.Channel().InvalidateCacheForChannelMembersNotifyProps(channelId) +} + func InvalidateCacheForChannelByNameSkipClusterSend(teamId, name string) { Srv.Store.Channel().InvalidateChannelByName(teamId, name) } -- cgit v1.2.3-1-g7c22