mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2025-02-03 00:34:11 +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 client = Matrix.of(context).client;
|
||||||
final result = await showFutureLoadingDialog<String>(
|
final result = await showFutureLoadingDialog<String>(
|
||||||
context: context,
|
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 (result.error == null) {
|
||||||
if (client.getRoomById(result.result!) == null) {
|
if (client.getRoomById(result.result!) == null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user