Skip to content

Commit 9d2a6c5

Browse files
committed
fix: clear our avatar does indeed clear it (and syncs)
1 parent 53cb46e commit 9d2a6c5

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

ts/models/conversation.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1361,6 +1361,20 @@ export class ConversationModel extends Model<ConversationAttributes> {
13611361
this.set({ avatarPointer: newProfile.avatarPointer });
13621362
changes = true;
13631363
}
1364+
} else {
1365+
if (
1366+
this.getAvatarInProfilePath() ||
1367+
this.getFallbackAvatarInProfilePath() ||
1368+
this.getAvatarPointer()
1369+
) {
1370+
changes = true;
1371+
}
1372+
this.set({
1373+
avatarInProfile: undefined,
1374+
avatarPointer: undefined,
1375+
profileKey: undefined,
1376+
fallbackAvatarInProfile: undefined,
1377+
});
13641378
}
13651379

13661380
if (changes) {

0 commit comments

Comments
 (0)