profileKey: Check length of incoming values, clear on failed send/fetch
This commit is contained in:
parent
b96c7e90fe
commit
b33b5d2a30
18 changed files with 284 additions and 56 deletions
|
@ -2730,7 +2730,11 @@ async function updateGroup(
|
|||
'private'
|
||||
);
|
||||
|
||||
if (member.profileKey && !contact.get('profileKey')) {
|
||||
if (
|
||||
member.profileKey &&
|
||||
member.profileKey.length > 0 &&
|
||||
!contact.get('profileKey')
|
||||
) {
|
||||
contactsWithoutProfileKey.push(contact);
|
||||
contact.setProfileKey(member.profileKey);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue