Making it so other users can't "invite" you to a topic

I was discussing with @techAPJ in the PR regarding how we should handle invitations from a user that the target user has muted. The way it is implemented now is that invitation is basically a no-op which means that a user would click invite and nothing would happen. I think this is confusing as my first assumption would be that invites are broken. I have two suggestions on how we can handle this:

  1. Check for the users which have muted the current user and remove them from the autocomplete. If the user manually types the username into the form and submits, raise a generic message like “The current user is not accepting invitations at the moment”.

  2. Invite the target user into the topic but automatically set the notification level to muted. This way, we won’t complicate the invitation flow and the target user will not receive any notification.

2 Likes