Skip to content

Commit 51647fe

Browse files
authored
Fix avatar not showing for new group adds with trusted contact
1 parent e5473e2 commit 51647fe

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

ts/groups.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5898,16 +5898,6 @@ async function applyGroupState({
58985898
result.name = undefined;
58995899
}
59005900

5901-
// avatar
5902-
result = {
5903-
...result,
5904-
...(await applyNewAvatar({
5905-
newAvatarUrl: dropNull(groupState.avatar),
5906-
attributes: result,
5907-
logId,
5908-
})),
5909-
};
5910-
59115901
// disappearingMessagesTimer
59125902
// Note: during decryption, disappearingMessageTimer becomes a GroupAttributeBlob
59135903
const { disappearingMessagesTimer } = groupState;
@@ -6131,6 +6121,16 @@ async function applyGroupState({
61316121
return member;
61326122
});
61336123

6124+
// avatar
6125+
result = {
6126+
...result,
6127+
...(await applyNewAvatar({
6128+
newAvatarUrl: dropNull(groupState.avatar),
6129+
attributes: result,
6130+
logId,
6131+
})),
6132+
};
6133+
61346134
if (result.left) {
61356135
result.addedBy = undefined;
61366136
}

0 commit comments

Comments
 (0)