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(
|
child: ElevatedButton.icon(
|
||||||
onPressed: () => _joinRoom(context),
|
onPressed: () => _joinRoom(context),
|
||||||
label: Text(
|
label: Text(
|
||||||
chunk?.joinRule == 'knock'
|
chunk?.joinRule == 'knock' &&
|
||||||
|
Matrix.of(context)
|
||||||
|
.client
|
||||||
|
.getRoomById(chunk!.roomId) ==
|
||||||
|
null
|
||||||
? L10n.of(context)!.knock
|
? L10n.of(context)!.knock
|
||||||
: chunk?.roomType == 'm.space'
|
: chunk?.roomType == 'm.space'
|
||||||
? L10n.of(context)!.joinSpace
|
? L10n.of(context)!.joinSpace
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue