Skip to content
Snippets Groups Projects
Commit 8d8834d3 authored by Erik Johnston's avatar Erik Johnston
Browse files

comment block_room

parent aa959a6c
No related branches found
No related tags found
No related merge requests found
......@@ -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={
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment