fix(xep): Fix ending presence processing too early if containing a photo
This commit is contained in:
parent
c7d58c3d3f
commit
9211963390
@ -56,14 +56,13 @@ class VCardManager extends XmppManagerBase {
|
|||||||
final x = presence.firstTag('x', xmlns: vCardTempUpdate)!;
|
final x = presence.firstTag('x', xmlns: vCardTempUpdate)!;
|
||||||
final hash = x.firstTag('photo')!.innerText();
|
final hash = x.firstTag('photo')!.innerText();
|
||||||
|
|
||||||
// TODO(Unknown): Use the presence manager interface.
|
|
||||||
getAttributes().sendEvent(
|
getAttributes().sendEvent(
|
||||||
VCardAvatarUpdatedEvent(
|
VCardAvatarUpdatedEvent(
|
||||||
JID.fromString(presence.from!),
|
JID.fromString(presence.from!),
|
||||||
hash,
|
hash,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
return state..done = true;
|
return state;
|
||||||
}
|
}
|
||||||
|
|
||||||
VCardPhoto? _parseVCardPhoto(XMLNode? node) {
|
VCardPhoto? _parseVCardPhoto(XMLNode? node) {
|
||||||
|
Loading…
Reference in New Issue
Block a user