Skip to content

Commit

Permalink
Update MatrixRoomMembers.kt so unencrypted DMs have the encrypted DM …
Browse files Browse the repository at this point in the history
  • Loading branch information
daedric7 authored Jul 19, 2024
1 parent 4a8b5ca commit 528eedc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ fun MatrixRoom.getDirectRoomMember(roomMembersState: MatrixRoomMembersState): St
return remember(roomMembersState) {
derivedStateOf {
roomMembers
?.takeIf { it.size == 2 && isDirect && isEncrypted }
?.takeIf { it.size == 2 && isDirect }
?.find { it.userId != sessionId }
}
}
Expand Down

0 comments on commit 528eedc

Please sign in to comment.