mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-18 05:56:22 +00:00
Merge pull request #1972 from profanity-im/fix/1970-sub-req-block
Remove subscription when reporting spam/abuse
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user