mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 12:19:41 +00:00
Fix avatar not showing for new group adds with trusted contact
This commit is contained in:
20
ts/groups.ts
20
ts/groups.ts
@@ -5898,16 +5898,6 @@ async function applyGroupState({
|
||||
result.name = undefined;
|
||||
}
|
||||
|
||||
// avatar
|
||||
result = {
|
||||
...result,
|
||||
...(await applyNewAvatar({
|
||||
newAvatarUrl: dropNull(groupState.avatar),
|
||||
attributes: result,
|
||||
logId,
|
||||
})),
|
||||
};
|
||||
|
||||
// disappearingMessagesTimer
|
||||
// Note: during decryption, disappearingMessageTimer becomes a GroupAttributeBlob
|
||||
const { disappearingMessagesTimer } = groupState;
|
||||
@@ -6131,6 +6121,16 @@ async function applyGroupState({
|
||||
return member;
|
||||
});
|
||||
|
||||
// avatar
|
||||
result = {
|
||||
...result,
|
||||
...(await applyNewAvatar({
|
||||
newAvatarUrl: dropNull(groupState.avatar),
|
||||
attributes: result,
|
||||
logId,
|
||||
})),
|
||||
};
|
||||
|
||||
if (result.left) {
|
||||
result.addedBy = undefined;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user