Skip to content

Commit

Permalink
Merge pull request #7895 from RocketChat/hotifx/brk-realtime-api-noti…
Browse files Browse the repository at this point in the history
…fications

[FIX] Remove break change in Realtime API
  • Loading branch information
rodrigok authored Aug 25, 2017
2 parents 512f102 + 6c19ecf commit adec1e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/notifications/notification.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Meteor.startup(function() {
Tracker.autorun(function() {
if (Meteor.userId()) {
RocketChat.Notifications.onUser('desktopNotification', function(notification) {
RocketChat.Notifications.onUser('notification', function(notification) {

let openedRoomId = undefined;
if (['channel', 'group', 'direct'].includes(FlowRouter.getRouteName())) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function notifyDesktopUser(userId, user, message, room, duration) {
if (room.t !== 'd' && room.name) {
title += ` @ #${ room.name }`;
}
RocketChat.Notifications.notifyUser(userId, 'desktopNotification', {
RocketChat.Notifications.notifyUser(userId, 'notification', {
title,
text: message.msg,
duration,
Expand Down

0 comments on commit adec1e0

Please sign in to comment.