From cf425917cfdbae3a1e50d801db1edd91fdd17927 Mon Sep 17 00:00:00 2001 From: "Alexander \"PapaTutuWawa" Date: Sat, 1 Apr 2023 12:39:15 +0200 Subject: [PATCH] feat(core): Reset the resource if lastResource is null --- packages/moxxmpp/lib/src/connection.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/moxxmpp/lib/src/connection.dart b/packages/moxxmpp/lib/src/connection.dart index 01aea42..7c9c57c 100644 --- a/packages/moxxmpp/lib/src/connection.dart +++ b/packages/moxxmpp/lib/src/connection.dart @@ -1142,6 +1142,8 @@ class XmppConnection { if (lastResource != null) { _setResource(lastResource, triggerEvent: false); + } else { + _setResource('', triggerEvent: false); } _enableReconnectOnSuccess = enableReconnectOnSuccess;