fix conditional rendering of popover actions

This commit is contained in:
Henry Hiles 2026-05-26 20:56:32 -04:00
commit 2ec442b35b
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs
6 changed files with 7 additions and 1 deletions

View file

@ -7,6 +7,7 @@ extension ShowUserPopover on BuildContext {
void showUserPopover(
MembershipContent member,
String userId, {
String? roomId,
required Offset globalPosition,
}) => showContextMenu(
globalPosition: globalPosition,
@ -16,7 +17,7 @@ extension ShowUserPopover on BuildContext {
padding: EdgeInsets.symmetric(horizontal: 16, vertical: 8),
child: IconTheme(
data: IconThemeData(),
child: UserPopover(member, userId),
child: UserPopover(member, userId, roomId: roomId),
),
),
],