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;
const avatar = this.get('avatar') || this.get('profileAvatar');
if (avatar && avatar.path) {
notificationIconUrl = getAbsoluteAttachmentPath(avatar.path);
const avatarPath = this.getAvatarPath();
if (avatarPath) {
notificationIconUrl = getAbsoluteAttachmentPath(avatarPath);
} else if (isMessageInDirectConversation) {
notificationIconUrl = await this.getIdenticon();
} else {