1
1
mirror of https://github.com/profanity-im/profanity.git synced 2025-01-03 14:57:42 -05:00

Merge pull request #1972 from profanity-im/fix/1970-sub-req-block

Remove subscription when reporting spam/abuse
This commit is contained in:
Michael Vetter 2024-06-14 13:51:04 +02:00 committed by GitHub
commit ca5308ae68
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3077,6 +3077,12 @@ cmd_blocked(ProfWin* window, const char* const command, gchar** args)
if (!res) {
cons_show("User %s already blocked.", args[1]);
}
// remove the subscription as well
if (presence_sub_request_exists(jid)) {
presence_subscription(jid, PRESENCE_UNSUBSCRIBED);
}
return TRUE;
}