From 91724e67f2b3d5623876258172f2013b246adb19 Mon Sep 17 00:00:00 2001 From: RationalCoding Date: Wed, 3 Jan 2018 14:00:03 -0500 Subject: [PATCH] style change --- client/notifications/notification.js | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/client/notifications/notification.js b/client/notifications/notification.js index 8a9c22fbf53..db2b30ca3bb 100644 --- a/client/notifications/notification.js +++ b/client/notifications/notification.js @@ -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); } });