friend log notification fixes

This commit is contained in:
Natsumi
2021-01-04 07:41:04 +13:00
parent 54f7f5154f
commit 6af20fd699
2 changed files with 7 additions and 1 deletions

View File

@@ -687,6 +687,12 @@ speechSynthesis.getVoices();
map[feed.senderUsername] < feed.created_at) {
map[feed.senderUsername] = feed.created_at;
}
} else if (feed.type === 'Friend' ||
feed.type === 'Unfriend') {
if (!map[feed.displayName] ||
map[feed.displayName] < feed.created_at) {
map[feed.displayName] = feed.created_at;
}
}
});
// disable notification on busy