From b92e825bc15b98d1ee576ae3a711e34e293e0fae Mon Sep 17 00:00:00 2001 From: "Alexander \"PapaTutuWawa" Date: Sat, 1 Jul 2023 13:19:26 +0200 Subject: [PATCH] fix(xep): Fix handling StanzaErrors from the DiscoManager --- packages/moxxmpp/lib/src/xeps/xep_0084.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/moxxmpp/lib/src/xeps/xep_0084.dart b/packages/moxxmpp/lib/src/xeps/xep_0084.dart index 08ffef4..c7656ae 100644 --- a/packages/moxxmpp/lib/src/xeps/xep_0084.dart +++ b/packages/moxxmpp/lib/src/xeps/xep_0084.dart @@ -5,8 +5,8 @@ import 'package:moxxmpp/src/jid.dart'; import 'package:moxxmpp/src/managers/base.dart'; import 'package:moxxmpp/src/managers/namespaces.dart'; import 'package:moxxmpp/src/namespaces.dart'; +import 'package:moxxmpp/src/stanza.dart'; import 'package:moxxmpp/src/stringxml.dart'; -import 'package:moxxmpp/src/xeps/xep_0030/errors.dart'; import 'package:moxxmpp/src/xeps/xep_0030/types.dart'; import 'package:moxxmpp/src/xeps/xep_0030/xep_0030.dart'; import 'package:moxxmpp/src/xeps/xep_0060/errors.dart'; @@ -226,7 +226,7 @@ class UserAvatarManager extends XmppManagerBase { jid, node: userAvatarDataXmlns, ); - if (response.isType()) return Result(UnknownAvatarError()); + if (response.isType()) return Result(UnknownAvatarError()); final items = response.get>(); if (items.isEmpty) return Result(UnknownAvatarError());