mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-13 21:35:10 +00:00
[MOD] Actually start noting down presence requests
This commit is contained in:
parent
f666f39b7c
commit
7ee5c055f4
6 changed files with 81 additions and 1 deletions
|
|
@ -65,6 +65,15 @@ PresenceStanza(ParseeData *args, XMLElement *stanza, XMPPThread *thr)
|
|||
XMLElement *status = XMLookForUnique(stanza, "status");
|
||||
|
||||
char *oid = HashMapGet(stanza->attrs, "from");
|
||||
char *dst = HashMapGet(stanza->attrs, "to");
|
||||
char *type = HashMapGet(stanza->attrs, "type");
|
||||
|
||||
if (StrEquals(type, "subscribe"))
|
||||
{
|
||||
Log(LOG_WARNING, "!PRESENCE SUBSCRIPTION REQUEST! (%s:%s)", oid, dst);
|
||||
AddPresenceSubscriber(args, oid, dst); /* TODO: Send presence updates
|
||||
* whenever possible. */
|
||||
}
|
||||
|
||||
if (PEPManagerHandle(thr->info->pep_manager, stanza))
|
||||
{
|
||||
|
|
@ -97,7 +106,6 @@ PresenceStanza(ParseeData *args, XMLElement *stanza, XMPPThread *thr)
|
|||
char *jid = item ? HashMapGet(item->attrs, "jid") : NULL;
|
||||
char *trim = ParseeTrimJID(jid);
|
||||
char *from = NULL;
|
||||
char *type = HashMapGet(stanza->attrs, "type");
|
||||
char *room = ParseeGetBridgedRoom(args, stanza);
|
||||
char *decode_from, *real_matrix;
|
||||
char *matrix_user_pl = ParseeEncodeJID(args->config, trim, false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue