[ADD] Push pupmet events too.

This commit is contained in:
LDA 2024-06-27 04:02:26 +02:00
commit 82bed09b03
4 changed files with 25 additions and 5 deletions

View file

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