Fix single person groups being marked verified

Co-authored-by: Jamie Kyle <113370520+jamiebuilds-signal@users.noreply.github.com>
This commit is contained in:
automated-signal
2024-05-13 15:50:32 -05:00
committed by GitHub
parent d88788aa84
commit 949adefd22

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;
}