mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-14 00:45:10 +00:00
[FIX/ADD] Fix deadlock and DMs.
This commit is contained in:
parent
c5df636bdb
commit
59d5ad6780
7 changed files with 57 additions and 34 deletions
|
|
@ -18,7 +18,6 @@
|
|||
AdvertiseSimple("urn:xmpp:reactions:0") \
|
||||
AdvertiseSimple("urn:xmpp:styling:0") \
|
||||
AdvertiseSimple("urn:xmpp:reply:0") \
|
||||
AdvertiseSimple("urn:xmpp:sid:0") \
|
||||
AdvertiseSimple("jabber:x:oob") \
|
||||
AdvertiseSimple("urn:parsee:x-parsee:0") \
|
||||
AdvertiseSimple("urn:parsee:jealousy:0")
|
||||
|
|
@ -98,6 +97,7 @@ MessageStanza(ParseeData *args, XMLElement *stanza)
|
|||
|
||||
ASRegisterUser(args->config, encoded);
|
||||
ASSetName(args->config, encoded, res);
|
||||
ASInvite(args->config, mroom_id, encoded);
|
||||
ASJoin(args->config, mroom_id, encoded);
|
||||
|
||||
/* Check if it is a media link */
|
||||
|
|
@ -288,6 +288,7 @@ PresenceStanza(ParseeData *args, XMLElement *stanza)
|
|||
char *jid = item ? HashMapGet(item->attrs, "jid") : NULL;
|
||||
char *oid = HashMapGet(stanza->attrs, "from");
|
||||
|
||||
|
||||
if (jid)
|
||||
{
|
||||
ParseePushJIDTable(oid, jid);
|
||||
|
|
@ -330,7 +331,6 @@ ParseeXMPPThread(void *argp)
|
|||
from = HashMapGet(stanza->attrs, "from");
|
||||
if (!strncmp(from, killer, strlen(killer)))
|
||||
{
|
||||
Log(LOG_INFO, "Killer detected.");
|
||||
XMLFreeElement(stanza);
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue