fix: show wallet button for 2-member rooms even without isDirect flag
The isDm check requires isDirect=true which is not set for rooms created via API. Relax the check to also show the wallet button in any room with exactly 2 active members.
This commit is contained in:
parent
bf3ad49bec
commit
c1b927380f
1 changed files with 1 additions and 1 deletions
|
|
@ -295,7 +295,7 @@ class MessagesPresenter(
|
|||
dmUserVerificationState = dmUserVerificationState,
|
||||
roomMemberModerationState = roomMemberModerationState,
|
||||
topBarSharedHistoryIcon = topBarSharedHistoryIcon,
|
||||
isDmRoom = roomInfo.isDm,
|
||||
isDmRoom = roomInfo.isDm || roomInfo.activeMembersCount == 2L,
|
||||
successorRoom = roomInfo.successorRoom,
|
||||
eventSink = ::handleEvent,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue