chore: Follow up knock room

pull/1019/head
krille-chan 1 year ago
parent 45e72428e2
commit 4353c8ddd1
No known key found for this signature in database

@ -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…
Cancel
Save