From e69999a7908909e417b6be6fc0ebf3eef325f5aa Mon Sep 17 00:00:00 2001 From: Mikunj Date: Tue, 15 Jan 2019 15:46:57 +1100 Subject: [PATCH] Fix condition order. --- js/notifications.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/notifications.js b/js/notifications.js index 97c1766bf..da19f056e 100644 --- a/js/notifications.js +++ b/js/notifications.js @@ -102,10 +102,10 @@ case SettingNames.COUNT: title = 'Loki Messenger'; - if (messagesNotificationCount > 0) { - message = newMessageCountLabel; - } else if (last.isFriendRequest) { + if (last.isFriendRequest) { message = `Friend request ${last.friendRequestType}`; + } else if (messagesNotificationCount > 0) { + message = newMessageCountLabel; } else { message = '-'; }