Skip to content

Instantly share code, notes, and snippets.

@turt2live turt2live/ Secret
Last active Sep 25, 2019

What would you like to do?

There's 3 methods to block the room:

  1. Use the synapse admin API for it:
    curl -s -X POST -H "Authorization: Bearer YOUR_ACCESS_TOKEN" -H "Content-Type: application/json" -d '{"new_room_user_id":""}' 'https://YOUR_SERVER/_matrix/client/unstable/admin/shutdown_room/!'
  2. Block the room with an antispam module ( )
  3. Ignore the user with /ignore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.