mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-17 08:55:12 +00:00
feat: Initial knocking
This commit is contained in:
parent
8f64afbed9
commit
b21375d69a
1 changed files with 3 additions and 1 deletions
|
@ -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 a new issue