[FIX] Do not listen for kick requests

They may be sent for scenarios where an unlink is NOT wanted.
This commit is contained in:
LDA 2024-10-05 09:20:49 +02:00
commit 179fd405db
2 changed files with 2 additions and 3 deletions

View file

@ -21,7 +21,7 @@ bit.
- Start dealing with some basic PEP and vCard-based avatars. - Start dealing with some basic PEP and vCard-based avatars.
- Allows experimental MbedTLS through a specific Cytoplasm - Allows experimental MbedTLS through a specific Cytoplasm
patch. patch.
- Kicking/Banning Parsee from XMPP effectively unlinks it. - Banning Parsee from a XMPP MUC effectively unlinks it.
- Start adding basic documentation to Parsee - Start adding basic documentation to Parsee
- Add MUC whitelists for plumbing, alongside a `whitelist` tool - Add MUC whitelists for plumbing, alongside a `whitelist` tool

View file

@ -212,8 +212,7 @@ PresenceStanza(ParseeData *args, XMLElement *stanza, XMPPThread *thr)
} }
} }
if (StrEquals(type, "unavailable") && if (StrEquals(type, "unavailable") &&
StrEquals(dst, parsee_j) && StrEquals(dst, parsee_j) && IsStatus(301))
(IsStatus(301) || IsStatus(307)))
{ {
char *chat_id = ParseeGetFromRoomID(args, room); char *chat_id = ParseeGetFromRoomID(args, room);