From 358f4bc4aae8ded54b7ae54012a1742af046f4ef Mon Sep 17 00:00:00 2001 From: ggurdin <46800240+ggurdin@users.noreply.github.com> Date: Thu, 12 Dec 2024 14:08:48 -0500 Subject: [PATCH] only show option to enter code if room is space (#1232) --- lib/widgets/public_room_bottom_sheet.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/widgets/public_room_bottom_sheet.dart b/lib/widgets/public_room_bottom_sheet.dart index a1c0fd7af..adee798e1 100644 --- a/lib/widgets/public_room_bottom_sheet.dart +++ b/lib/widgets/public_room_bottom_sheet.dart @@ -227,7 +227,7 @@ class PublicRoomBottomSheetState extends State { ], ), // #Pangea - if (!_isRoomMember) + if (!_isRoomMember && chunk?.roomType == 'm.space') Padding( padding: const EdgeInsets.symmetric(horizontal: 16.0), child: TextField( @@ -242,7 +242,7 @@ class PublicRoomBottomSheetState extends State { ), ), ), - if (!_isRoomMember) + if (!_isRoomMember && chunk?.roomType == 'm.space') Padding( padding: const EdgeInsets.symmetric( horizontal: 16.0, @@ -256,7 +256,7 @@ class PublicRoomBottomSheetState extends State { icon: const Icon(Icons.navigate_next), ), ), - if (!_isRoomMember) + if (!_isRoomMember && chunk?.roomType == 'm.space') Padding( padding: const EdgeInsets.symmetric(horizontal: 16.0), child: Row(