mirror of
https://github.com/oxen-io/session-desktop.git
synced 2023-12-14 02:12:57 +01:00
Merge pull request #137 from Mikunj/fix/friend-display
Fix contact display
This commit is contained in:
commit
1b681bdc98
3 changed files with 11 additions and 3 deletions
|
@ -82,7 +82,7 @@
|
|||
initialize() {
|
||||
this.on('change:timestamp change:name change:number change:profileName', this.sort);
|
||||
|
||||
this.listenTo(conversations, 'add change:active_at', this.addActive);
|
||||
this.listenTo(conversations, 'add change:active_at change:friendRequestStatus', this.addActive);
|
||||
this.listenTo(conversations, 'reset', () => this.reset([]));
|
||||
|
||||
this.collator = new Intl.Collator();
|
||||
|
|
|
@ -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 (last.isFriendRequest) {
|
||||
message = `Friend request ${last.friendRequestType}`;
|
||||
} else if (messagesNotificationCount > 0) {
|
||||
message = newMessageCountLabel;
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
break;
|
||||
case SettingNames.NAME: {
|
||||
const lastMessageTitle = last.title;
|
||||
|
|
Loading…
Reference in a new issue