diff --git a/client/notifications/notification.js b/client/notifications/notification.js index 7e176df7ddf..6adec5a6e03 100644 --- a/client/notifications/notification.js +++ b/client/notifications/notification.js @@ -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())) { diff --git a/packages/rocketchat-lib/server/lib/sendNotificationsOnMessage.js b/packages/rocketchat-lib/server/lib/sendNotificationsOnMessage.js index fd1c7a6b91d..1083d18d76e 100644 --- a/packages/rocketchat-lib/server/lib/sendNotificationsOnMessage.js +++ b/packages/rocketchat-lib/server/lib/sendNotificationsOnMessage.js @@ -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,