mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-13 21:25:11 +00:00
[ADD/WIP] Try dealing in VCards
This commit is contained in:
parent
d989331716
commit
9ea8f35c49
3 changed files with 55 additions and 1 deletions
|
|
@ -165,6 +165,20 @@ ParseeMemberHandler(ParseeData *data, HashMap *event)
|
|||
ParseeBroadcastStanza(data, full_jid, elem);
|
||||
XMLFreeElement(elem);
|
||||
|
||||
elem = XMLCreateTag("presence");
|
||||
{
|
||||
XMLElement *x = XMLCreateTag("x");
|
||||
XMLElement *photo;
|
||||
|
||||
XMLAddAttr(x, "xmlns", "vcard-temp:x:update");
|
||||
photo = XMLCreateTag("photo");
|
||||
XMLAddChild(photo, XMLCreateText(sha));
|
||||
XMLAddChild(x, photo);
|
||||
XMLAddChild(elem, x);
|
||||
}
|
||||
ParseeBroadcastStanza(data, full_jid, elem);
|
||||
XMLFreeElement(elem);
|
||||
|
||||
Free(full_jid);
|
||||
Free(avatar);
|
||||
Free(mime);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue