Skip to content

Commit

Permalink
Fix Livechat desktop notifications that are not showing up.
Browse files Browse the repository at this point in the history
  • Loading branch information
renatobecker committed Jun 26, 2018
1 parent 1ac565e commit b411fe4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ export function notifyDesktopUser({
if (room.t === 'd') {
title = UI_Use_Real_Name ? user.name : `@${ user.username }`;
text = notificationMessage;
} else if (room.name) {
title = `#${ room.name }`;
} else if (RocketChat.roomTypes.getRoomName(room.t, room)) {
title = `#${ RocketChat.roomTypes.getRoomName(room.t, room) }`;
text = `${ UI_Use_Real_Name ? user.name : user.username }: ${ notificationMessage }`;
} else {
return;
Expand Down

0 comments on commit b411fe4

Please sign in to comment.