[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

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