Skip to content

Commit

Permalink
Merge pull request #7533 from Darkneon/fix-missing-eventname-in-unUser
Browse files Browse the repository at this point in the history
[FIX] Missing eventName in unUser
  • Loading branch information
rodrigok authored Jul 27, 2017
2 parents 5ce9e7e + b81e92a commit a8a49ad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/rocketchat-lib/client/Notifications.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ RocketChat.Notifications = new class {
unRoom(room, eventName, callback) {
return this.streamRoom.removeListener(`${ room }/${ eventName }`, callback);
}
unUser(callback) {
return this.streamUser.removeListener(Meteor.userId(), callback);
unUser(eventName, callback) {
return this.streamUser.removeListener(`${ Meteor.userId() }/${ eventName }`, callback);
}

};
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ this.Notifications = new class {
unRoom(room, eventName, callback) {
return this.streamRoom.removeListener(`${ room }/${ eventName }`, callback);
}
unUser(callback) {
return this.streamUser.removeListener(Meteor.userId(), callback);
unUser(eventName, callback) {
return this.streamUser.removeListener(`${ Meteor.userId() }/${ eventName }`, callback);
}

};

0 comments on commit a8a49ad

Please sign in to comment.