mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-14 00:45:10 +00:00
[ADD] Push pupmet events too.
This commit is contained in:
parent
1126497d5b
commit
82bed09b03
4 changed files with 25 additions and 5 deletions
|
|
@ -152,6 +152,18 @@ MessageStanza(ParseeData *args, XMLElement *stanza)
|
|||
Free(res);
|
||||
Free(encoded);
|
||||
}
|
||||
else if (mroom_id)
|
||||
{
|
||||
XMLElement *parsee = XMLookForUnique(stanza, "x-parsee");
|
||||
XMLElement *event = XMLookForUnique(parsee, "event-id");
|
||||
XMLElement *e_d = ArrayGet(event ? event->children : NULL, 0);
|
||||
char *s_id_str = XMPPGetStanzaID(stanza);
|
||||
char *id_str = HashMapGet(stanza->attrs, "id");
|
||||
if (ParseeVerifyStanza(args, chat_id, s_id_str))
|
||||
{
|
||||
ParseePushStanza(args, chat_id, s_id_str, id_str, e_d->data, from);
|
||||
}
|
||||
}
|
||||
Free(chat_id);
|
||||
Free(mroom_id);
|
||||
Free(from_matrix);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue