diff options
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) { |