mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
comment block_room
This commit is contained in:
parent
aa959a6c07
commit
8d8834d3e7
@ -500,6 +500,15 @@ class RoomStore(RoomWorkerStore, SearchStore):
|
|||||||
|
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
def block_room(self, room_id, user_id):
|
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(
|
yield self._simple_upsert(
|
||||||
table="blocked_rooms",
|
table="blocked_rooms",
|
||||||
keyvalues={
|
keyvalues={
|
||||||
|
Loading…
Reference in New Issue
Block a user