[FIX] Remove break change in Realtime API

pull/7895/head
Rodrigo Nascimento 8 years ago
parent 512f1020bb
commit 6c19ecf3c9
  1. 2
      client/notifications/notification.js
  2. 2
      packages/rocketchat-lib/server/lib/sendNotificationsOnMessage.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())) {

@ -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,

Loading…
Cancel
Save