Fix avatar not showing for new group adds with trusted contact

This commit is contained in:
yash-signal
2025-04-02 13:52:21 -05:00
committed by GitHub
parent e5473e26db
commit 51647fef95

View File

@@ -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;
}