only show option to enter code if room is space (#1232)

pull/1544/head
ggurdin 11 months ago committed by GitHub
parent 3435658dbb
commit 358f4bc4aa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -227,7 +227,7 @@ class PublicRoomBottomSheetState extends State<PublicRoomBottomSheet> {
],
),
// #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<PublicRoomBottomSheet> {
),
),
),
if (!_isRoomMember)
if (!_isRoomMember && chunk?.roomType == 'm.space')
Padding(
padding: const EdgeInsets.symmetric(
horizontal: 16.0,
@ -256,7 +256,7 @@ class PublicRoomBottomSheetState extends State<PublicRoomBottomSheet> {
icon: const Icon(Icons.navigate_next),
),
),
if (!_isRoomMember)
if (!_isRoomMember && chunk?.roomType == 'm.space')
Padding(
padding: const EdgeInsets.symmetric(horizontal: 16.0),
child: Row(

Loading…
Cancel
Save