mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-13 16:55:10 +00:00
[ADD/WIP] Two-way replies
Call me Seija Kijin the way I apply my Reverse Ideology.
This commit is contained in:
parent
8472ada953
commit
c5df636bdb
5 changed files with 44 additions and 1 deletions
|
|
@ -268,3 +268,14 @@ XMPPGetReplacedID(XMLElement *stanza)
|
|||
);
|
||||
return replace ? HashMapGet(replace->attrs, "id") : NULL;
|
||||
}
|
||||
char *
|
||||
XMPPGetReply(XMLElement *elem)
|
||||
{
|
||||
XMLElement *rep = XMLookForTKV(elem, "reply", "xmlns", "urn:xmpp:reply:0");
|
||||
if (!rep)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return HashMapGet(rep->attrs, "id");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue