mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-05 03:29:30 +01:00
feat: Initial knocking
This commit is contained in:
parent
0c38f6a205
commit
7e1265af8a
@ -34,7 +34,9 @@ class PublicRoomBottomSheet extends StatelessWidget {
|
||||
final client = Matrix.of(context).client;
|
||||
final result = await showFutureLoadingDialog<String>(
|
||||
context: context,
|
||||
future: () => client.joinRoom(roomAlias ?? chunk!.roomId),
|
||||
future: () => chunk?.joinRule == 'knock'
|
||||
? client.knockRoom(chunk!.roomId)
|
||||
: client.joinRoom(roomAlias ?? chunk!.roomId),
|
||||
);
|
||||
if (result.error == null) {
|
||||
if (client.getRoomById(result.result!) == null) {
|
||||
|
Loading…
Reference in New Issue
Block a user