|
|
|
@ -43,15 +43,13 @@ Meteor.startup(function() { |
|
|
|
|
KonchatNotification.newMessage(notification.payload.rid); |
|
|
|
|
KonchatNotification.showDesktop(notification); |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
if (!hasFocus || !messageIsInOpenedRoom) { |
|
|
|
|
// Play a sound and show a notification.
|
|
|
|
|
KonchatNotification.newMessage(notification.payload.rid); |
|
|
|
|
KonchatNotification.showDesktop(notification); |
|
|
|
|
} else if (!muteFocusedConversations) { |
|
|
|
|
// Play a notification sound
|
|
|
|
|
KonchatNotification.newMessage(notification.payload.rid); |
|
|
|
|
} |
|
|
|
|
} else if (!hasFocus || !messageIsInOpenedRoom) { |
|
|
|
|
// Play a sound and show a notification.
|
|
|
|
|
KonchatNotification.newMessage(notification.payload.rid); |
|
|
|
|
KonchatNotification.showDesktop(notification); |
|
|
|
|
} else if (!muteFocusedConversations) { |
|
|
|
|
// Play a notification sound
|
|
|
|
|
KonchatNotification.newMessage(notification.payload.rid); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|