fix: don't show option to join with code if space is public (#1583)
This commit is contained in:
parent
0622bf6f07
commit
0519ae41e1
1 changed files with 9 additions and 3 deletions
|
|
@ -230,7 +230,9 @@ class PublicRoomBottomSheetState extends State<PublicRoomBottomSheet> {
|
|||
],
|
||||
),
|
||||
// #Pangea
|
||||
if (!_isRoomMember && chunk?.roomType == 'm.space')
|
||||
if (!_isRoomMember &&
|
||||
chunk?.roomType == 'm.space' &&
|
||||
chunk?.joinRule != 'public')
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16.0),
|
||||
child: TextField(
|
||||
|
|
@ -245,7 +247,9 @@ class PublicRoomBottomSheetState extends State<PublicRoomBottomSheet> {
|
|||
),
|
||||
),
|
||||
),
|
||||
if (!_isRoomMember && chunk?.roomType == 'm.space')
|
||||
if (!_isRoomMember &&
|
||||
chunk?.roomType == 'm.space' &&
|
||||
chunk?.joinRule != 'public')
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(
|
||||
horizontal: 16.0,
|
||||
|
|
@ -259,7 +263,9 @@ class PublicRoomBottomSheetState extends State<PublicRoomBottomSheet> {
|
|||
icon: const Icon(Icons.navigate_next),
|
||||
),
|
||||
),
|
||||
if (!_isRoomMember && chunk?.roomType == 'm.space')
|
||||
if (!_isRoomMember &&
|
||||
chunk?.roomType == 'm.space' &&
|
||||
chunk?.joinRule != 'public')
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16.0),
|
||||
child: Row(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue