[ADD/WIP] Two-way replies

Call me Seija Kijin the way I apply my Reverse Ideology.
This commit is contained in:
LDA 2024-06-29 22:00:29 +02:00
commit c5df636bdb
5 changed files with 44 additions and 1 deletions

View file

@ -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");
}