Ensure notification icons respect avatar preference

This commit is contained in:
trevor-signal 2023-05-05 12:33:38 -04:00 committed by Josh Perez
parent 863a441dd4
commit 83abcd4cca

View file

@ -5546,9 +5546,9 @@ export class ConversationModel extends window.Backbone
}); });
let notificationIconUrl; let notificationIconUrl;
const avatar = this.get('avatar') || this.get('profileAvatar'); const avatarPath = this.getAvatarPath();
if (avatar && avatar.path) { if (avatarPath) {
notificationIconUrl = getAbsoluteAttachmentPath(avatar.path); notificationIconUrl = getAbsoluteAttachmentPath(avatarPath);
} else if (isMessageInDirectConversation) { } else if (isMessageInDirectConversation) {
notificationIconUrl = await this.getIdenticon(); notificationIconUrl = await this.getIdenticon();
} else { } else {