From c3088f9046d0b6b97b640c7c6fc9ec354523eb27 Mon Sep 17 00:00:00 2001 From: "Alexander \"PapaTutuWawa" Date: Mon, 25 Sep 2023 21:08:24 +0200 Subject: [PATCH] fix(xep): Make leaving the room non-awaitable --- packages/moxxmpp/lib/src/xeps/xep_0045/xep_0045.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/moxxmpp/lib/src/xeps/xep_0045/xep_0045.dart b/packages/moxxmpp/lib/src/xeps/xep_0045/xep_0045.dart index 3d5cdd9..59e7d6a 100644 --- a/packages/moxxmpp/lib/src/xeps/xep_0045/xep_0045.dart +++ b/packages/moxxmpp/lib/src/xeps/xep_0045/xep_0045.dart @@ -207,7 +207,7 @@ class MUCManager extends XmppManagerBase { return nick; }); if (nick == null) { - return Result(RoomNotJoinedError); + return Result(RoomNotJoinedError()); } await getAttributes().sendStanza( StanzaDetails( @@ -215,6 +215,7 @@ class MUCManager extends XmppManagerBase { to: roomJid.withResource(nick).toString(), type: 'unavailable', ), + awaitable: false, ), ); return const Result(true);