Fix single person groups being marked verified
This commit is contained in:
parent
101405891d
commit
39bc48c724
1 changed files with 8 additions and 2 deletions
|
@ -2727,11 +2727,17 @@ export class ConversationModel extends window.Backbone
|
||||||
return this.get('verified') === this.verifiedEnum.VERIFIED;
|
return this.get('verified') === this.verifiedEnum.VERIFIED;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!this.contactCollection?.length) {
|
const contacts = this.contactCollection;
|
||||||
|
|
||||||
|
if (contacts == null || contacts.length === 0) {
|
||||||
return false;
|
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)) {
|
if (isMe(contact.attributes)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue