@ -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())) {
@ -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,