fix(xep): Make leaving the room non-awaitable
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
PapaTutuWawa 2023-09-25 21:08:24 +02:00
parent 64b93b536e
commit c3088f9046

View File

@ -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);