Skip to content

Commit

Permalink
Merge pull request #1972 from profanity-im/fix/1970-sub-req-block
Browse files Browse the repository at this point in the history
Remove subscription when reporting spam/abuse
  • Loading branch information
jubalh authored Jun 14, 2024
2 parents 73f8272 + 694680d commit ca5308a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/command/cmd_funcs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit ca5308a

Please sign in to comment.