feat(core): Reset the resource if lastResource is null

This commit is contained in:
PapaTutuWawa 2023-04-01 12:39:15 +02:00
parent 63b7abd6f9
commit cf425917cf

View File

@ -1142,6 +1142,8 @@ class XmppConnection {
if (lastResource != null) {
_setResource(lastResource, triggerEvent: false);
} else {
_setResource('', triggerEvent: false);
}
_enableReconnectOnSuccess = enableReconnectOnSuccess;