profileKey: Check length of incoming values, clear on failed send/fetch
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user