parent
0e3faccb3c
commit
a4df5b2ccc
@ -1,7 +1,7 @@ |
||||
/* globals updateAvatarOfUsername */ |
||||
|
||||
Meteor.startup(function() { |
||||
RocketChat.Notifications.onAll('updateAvatar', function(data) { |
||||
RocketChat.Notifications.onLogged('updateAvatar', function(data) { |
||||
updateAvatarOfUsername(data.username); |
||||
}); |
||||
}); |
||||
|
@ -1,2 +1,2 @@ |
||||
RocketChat.authz.cachedCollection = new RocketChat.CachedCollection({ name: 'permissions', eventType: 'onAll', initOnLogin: true }) |
||||
RocketChat.authz.cachedCollection = new RocketChat.CachedCollection({ name: 'permissions', eventType: 'onLogged', initOnLogin: true }) |
||||
@ChatPermissions = RocketChat.authz.cachedCollection.collection |
||||
|
@ -1,4 +1,4 @@ |
||||
/* globals deleteEmojiCustom */ |
||||
Meteor.startup(() => |
||||
RocketChat.Notifications.onAll('deleteEmojiCustom', data => deleteEmojiCustom(data.emojiData)) |
||||
RocketChat.Notifications.onLogged('deleteEmojiCustom', data => deleteEmojiCustom(data.emojiData)) |
||||
); |
||||
|
@ -1,4 +1,4 @@ |
||||
/* globals updateEmojiCustom */ |
||||
Meteor.startup(() => |
||||
RocketChat.Notifications.onAll('updateEmojiCustom', data => updateEmojiCustom(data.emojiData)) |
||||
RocketChat.Notifications.onLogged('updateEmojiCustom', data => updateEmojiCustom(data.emojiData)) |
||||
); |
||||
|
Loading…
Reference in new issue