From 6a85976341fa3ae1429f9bb817a28589cd53aea5 Mon Sep 17 00:00:00 2001 From: Alfonso Grillo Date: Fri, 16 Jun 2023 16:35:22 +0200 Subject: [PATCH] Fix RoomProxy.isEncryptedOneToOneRoom (#1094) --- ElementX/Sources/Services/Room/RoomProxyProtocol.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ElementX/Sources/Services/Room/RoomProxyProtocol.swift b/ElementX/Sources/Services/Room/RoomProxyProtocol.swift index 3d6f0b014..fb2298719 100644 --- a/ElementX/Sources/Services/Room/RoomProxyProtocol.swift +++ b/ElementX/Sources/Services/Room/RoomProxyProtocol.swift @@ -165,7 +165,7 @@ extension RoomProxyProtocol { } var isEncryptedOneToOneRoom: Bool { - isDirect && isEncrypted && activeMembersCount == 2 + isDirect && isEncrypted && activeMembersCount <= 2 } func members() async -> [RoomMemberProxyProtocol]? {