From 179fd405dbb3a874b7fb6d092dbddc647637f386 Mon Sep 17 00:00:00 2001 From: LDA Date: Sat, 5 Oct 2024 09:20:49 +0200 Subject: [PATCH] [FIX] Do not listen for kick requests They may be sent for scenarios where an unlink is NOT wanted. --- CHANGELOG.md | 2 +- src/XMPPThread/Stanzas/Presence.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 33a2d76..1d5c0f4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,7 +21,7 @@ bit. - Start dealing with some basic PEP and vCard-based avatars. - Allows experimental MbedTLS through a specific Cytoplasm patch. -- Kicking/Banning Parsee from XMPP effectively unlinks it. +- Banning Parsee from a XMPP MUC effectively unlinks it. - Start adding basic documentation to Parsee - Add MUC whitelists for plumbing, alongside a `whitelist` tool diff --git a/src/XMPPThread/Stanzas/Presence.c b/src/XMPPThread/Stanzas/Presence.c index 89448b6..b72f988 100644 --- a/src/XMPPThread/Stanzas/Presence.c +++ b/src/XMPPThread/Stanzas/Presence.c @@ -212,8 +212,7 @@ PresenceStanza(ParseeData *args, XMLElement *stanza, XMPPThread *thr) } } if (StrEquals(type, "unavailable") && - StrEquals(dst, parsee_j) && - (IsStatus(301) || IsStatus(307))) + StrEquals(dst, parsee_j) && IsStatus(301)) { char *chat_id = ParseeGetFromRoomID(args, room);