Fix up notification.

pull/137/head
Mikunj 6 years ago
parent 78c5962ff0
commit 7341471ce7

@ -2166,6 +2166,7 @@
messageSentAt: Date.now(),
title: i18n(title),
isFriendRequest: true,
friendRequestType: type,
});
},

@ -100,8 +100,15 @@
const last = this.last().toJSON();
switch (userSetting) {
case SettingNames.COUNT:
title = 'Signal';
message = newMessageCountLabel;
title = 'Loki Messenger';
if (messagesNotificationCount > 0) {
message = newMessageCountLabel;
} else if (last.isFriendRequest) {
message = `Friend request ${last.friendRequestType}`;
} else {
message = '-';
}
break;
case SettingNames.NAME: {
const lastMessageTitle = last.title;

Loading…
Cancel
Save