mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-18 08:13:58 +01:00
comment block_room
This commit is contained in:
parent
aa959a6c07
commit
8d8834d3e7
1 changed files with 9 additions and 0 deletions
|
@ -500,6 +500,15 @@ class RoomStore(RoomWorkerStore, SearchStore):
|
|||
|
||||
@defer.inlineCallbacks
|
||||
def block_room(self, room_id, user_id):
|
||||
"""Marks the room as blocked. Can be called multiple times.
|
||||
|
||||
Args:
|
||||
room_id (str): Room to block
|
||||
user_id (str): Who blocked it
|
||||
|
||||
Returns:
|
||||
Deferred
|
||||
"""
|
||||
yield self._simple_upsert(
|
||||
table="blocked_rooms",
|
||||
keyvalues={
|
||||
|
|
Loading…
Reference in a new issue