Less strict uuid fetch in areWeAdmin

This commit is contained in:
Fedor Indutny 2021-11-10 00:48:27 +01:00 committed by GitHub
parent 9ce8acc846
commit 6e394a84d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -4626,7 +4626,7 @@ export class ConversationModel extends window.Backbone
const memberEnum = Proto.Member.Role;
const members = this.get('membersV2') || [];
const ourUuid = window.textsecure.storage.user.getCheckedUuid().toString();
const ourUuid = window.textsecure.storage.user.getUuid()?.toString();
const me = members.find(item => item.uuid === ourUuid);
if (!me) {
return false;