From 39bc48c7243b9be315b212780b58f637852f973f Mon Sep 17 00:00:00 2001 From: Jamie Kyle <113370520+jamiebuilds-signal@users.noreply.github.com> Date: Mon, 13 May 2024 13:13:58 -0700 Subject: [PATCH] Fix single person groups being marked verified --- ts/models/conversations.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/ts/models/conversations.ts b/ts/models/conversations.ts index 274e9f4513..32d78966a6 100644 --- a/ts/models/conversations.ts +++ b/ts/models/conversations.ts @@ -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; }