fix(xep): Fix missing handling of StanzaError

Fixes #48.
This commit is contained in:
PapaTutuWawa 2023-07-29 19:27:40 +02:00
parent 1e7279e23b
commit 93418f0127

View File

@ -205,7 +205,7 @@ class EntityCapabilitiesManager extends XmppManagerBase {
from,
node: capabilityNode,
);
if (discoRequest.isType<DiscoError>()) {
if (discoRequest.isType<StanzaError>()) {
return state;
}
final discoInfo = discoRequest.get<DiscoInfo>();