only show option to enter code if room is space (#1232)
This commit is contained in:
parent
3435658dbb
commit
358f4bc4aa
1 changed files with 3 additions and 3 deletions
|
|
@ -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…
Add table
Reference in a new issue