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

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;
}