Fix single person groups being marked verified

This commit is contained in:
Jamie Kyle 2024-05-13 13:13:58 -07:00 committed by GitHub
parent 101405891d
commit 39bc48c724
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2727,11 +2727,17 @@ export class ConversationModel extends window.Backbone
return this.get('verified') === this.verifiedEnum.VERIFIED;
}
if (!this.contactCollection?.length) {
const contacts = this.contactCollection;
if (contacts == null || contacts.length === 0) {
return false;
}
return this.contactCollection?.every(contact => {
if (contacts.length === 1 && isMe(contacts.first()?.attributes)) {
return false;
}
return contacts.every(contact => {
if (isMe(contact.attributes)) {
return true;
}