diff options
author | Christopher Speller <crspeller@gmail.com> | 2016-12-06 10:49:34 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-06 10:49:34 -0500 |
commit | 026553e4f87bfc647a5c03129752e30fc523fa07 (patch) | |
tree | d5403c760151c0fa26fc6d020f7f4326ea9d6f8a /api/web_hub.go | |
parent | dcf11a14d8363c79ab62aefca46834d6daa615ab (diff) | |
download | chat-026553e4f87bfc647a5c03129752e30fc523fa07.tar.gz chat-026553e4f87bfc647a5c03129752e30fc523fa07.tar.bz2 chat-026553e4f87bfc647a5c03129752e30fc523fa07.zip |
Improving command line interface (#4689)
Diffstat (limited to 'api/web_hub.go')
-rw-r--r-- | api/web_hub.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/api/web_hub.go b/api/web_hub.go index 4136eaf7c..cad77395b 100644 --- a/api/web_hub.go +++ b/api/web_hub.go @@ -119,7 +119,9 @@ func InvalidateCacheForUserSkipClusterSend(userId string) { Srv.Store.Channel().InvalidateAllChannelMembersForUser(userId) Srv.Store.User().InvalidateProfilesInChannelCacheByUser(userId) - GetHubForUserId(userId).InvalidateUser(userId) + if len(hubs) != 0 { + GetHubForUserId(userId).InvalidateUser(userId) + } } func (h *Hub) Register(webConn *WebConn) { |