mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-17 06:15:10 +00:00
chore: Follow up knock room
This commit is contained in:
parent
45e72428e2
commit
4353c8ddd1
1 changed files with 5 additions and 1 deletions
|
@ -142,7 +142,11 @@ class PublicRoomBottomSheet extends StatelessWidget {
|
|||
child: ElevatedButton.icon(
|
||||
onPressed: () => _joinRoom(context),
|
||||
label: Text(
|
||||
chunk?.joinRule == 'knock'
|
||||
chunk?.joinRule == 'knock' &&
|
||||
Matrix.of(context)
|
||||
.client
|
||||
.getRoomById(chunk!.roomId) ==
|
||||
null
|
||||
? L10n.of(context)!.knock
|
||||
: chunk?.roomType == 'm.space'
|
||||
? L10n.of(context)!.joinSpace
|
||||
|
|
Loading…
Reference in a new issue