diff options
author | enahum <nahumhbl@gmail.com> | 2017-02-23 11:08:48 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-23 11:08:48 -0300 |
commit | 748a416961923932e9b2969beb2730ee8c240ea7 (patch) | |
tree | f6ab74d35fc1be8b9015f8a89e7ac6058ec1d4fe /app/web_hub.go | |
parent | ca7d3b6e7bc2e52cf40180a462492313f298e760 (diff) | |
download | chat-748a416961923932e9b2969beb2730ee8c240ea7.tar.gz chat-748a416961923932e9b2969beb2730ee8c240ea7.tar.bz2 chat-748a416961923932e9b2969beb2730ee8c240ea7.zip |
PLT-3193 Add channel notification preferences for push and email notiā¦ (#5500)
* 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
Diffstat (limited to 'app/web_hub.go')
-rw-r--r-- | app/web_hub.go | 12 |
1 files changed, 12 insertions, 0 deletions
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) } |