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:
Kayos 2026-03-28 16:21:36 -07:00
parent bf3ad49bec
commit c1b927380f

View file

@ -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,
)