mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 03:06:14 +00:00
Fix room settings not treating unencrypted DMs as DMs (#3545)
This commit is contained in:
committed by
GitHub
parent
71c0eb19b2
commit
2ce8bb7682
+1
-1
@@ -44,7 +44,7 @@ fun MatrixRoom.getDirectRoomMember(roomMembersState: MatrixRoomMembersState): St
|
||||
derivedStateOf {
|
||||
roomMembers
|
||||
?.filter { it.membership.isActive() }
|
||||
?.takeIf { it.size == 2 && isDirect && isEncrypted }
|
||||
?.takeIf { it.size == 2 && isDirect }
|
||||
?.find { it.userId != sessionId }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user