fix(xep): Fix ending presence processing too early if containing a photo

This commit is contained in:
PapaTutuWawa 2023-09-27 18:57:38 +02:00
parent c7d58c3d3f
commit 9211963390

View File

@ -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) {