comment block_room

This commit is contained in:
Erik Johnston 2019-03-20 17:49:56 +00:00
parent aa959a6c07
commit 8d8834d3e7

View file

@ -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={