diff --git a/ts/groups.ts b/ts/groups.ts index 6055476b2e..bf39ab9291 100644 --- a/ts/groups.ts +++ b/ts/groups.ts @@ -2932,6 +2932,7 @@ async function updateGroup( ); if ( + !isMe(contact.attributes) && member.profileKey && member.profileKey.length > 0 && contact.get('profileKey') !== member.profileKey diff --git a/ts/util/getProfile.ts b/ts/util/getProfile.ts index c68e007026..03189d248d 100644 --- a/ts/util/getProfile.ts +++ b/ts/util/getProfile.ts @@ -131,10 +131,12 @@ async function doGetProfile(c: ConversationModel): Promise { throw error; } if (error.code === 401 || error.code === 403) { - if (!isMe(c.attributes)) { - await c.setProfileKey(undefined); + if (isMe(c.attributes)) { + throw error; } + await c.setProfileKey(undefined); + // Retry fetch using last known profileKeyVersion or fetch // unversioned profile. return doGetProfile(c);