|
|
|
@ -62,6 +62,7 @@ Meteor.startup(function() { |
|
|
|
|
// This logic is duplicated in /client/startup/unread.coffee.
|
|
|
|
|
const hasFocus = readMessage.isEnable(); |
|
|
|
|
const messageIsInOpenedRoom = openedRoomId === notification.payload.rid; |
|
|
|
|
const muteFocusedConversations = RocketChat.getUserPreference(Meteor.user(), 'muteFocusedConversations'); |
|
|
|
|
|
|
|
|
|
if (RocketChat.Layout.isEmbedded()) { |
|
|
|
|
if (!hasFocus && messageIsInOpenedRoom) { |
|
|
|
|