Both muting and blocking on client side do not restrict the sender in any way. It is a fine way to prevent unwanted messages.
On the server or forced upon the sender are a lot more problematic, because you take away choice from receivers who might want to receive the message.