From 9211963390e327f2316c5021fda75f0c4a23a3de Mon Sep 17 00:00:00 2001 From: "Alexander \"PapaTutuWawa" Date: Wed, 27 Sep 2023 18:57:38 +0200 Subject: [PATCH] fix(xep): Fix ending presence processing too early if containing a photo --- packages/moxxmpp/lib/src/xeps/xep_0054.dart | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/moxxmpp/lib/src/xeps/xep_0054.dart b/packages/moxxmpp/lib/src/xeps/xep_0054.dart index ac25ede..eb821f9 100644 --- a/packages/moxxmpp/lib/src/xeps/xep_0054.dart +++ b/packages/moxxmpp/lib/src/xeps/xep_0054.dart @@ -56,14 +56,13 @@ class VCardManager extends XmppManagerBase { final x = presence.firstTag('x', xmlns: vCardTempUpdate)!; final hash = x.firstTag('photo')!.innerText(); - // TODO(Unknown): Use the presence manager interface. getAttributes().sendEvent( VCardAvatarUpdatedEvent( JID.fromString(presence.from!), hash, ), ); - return state..done = true; + return state; } VCardPhoto? _parseVCardPhoto(XMLNode? node) {