mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
Allow blocking a room multiple times
This commit is contained in:
parent
4d53017432
commit
67d618e111
@ -500,10 +500,12 @@ class RoomStore(RoomWorkerStore, SearchStore):
|
||||
|
||||
@defer.inlineCallbacks
|
||||
def block_room(self, room_id, user_id):
|
||||
yield self._simple_insert(
|
||||
yield self._simple_upsert(
|
||||
table="blocked_rooms",
|
||||
values={
|
||||
keyvalues={
|
||||
"room_id": room_id,
|
||||
},
|
||||
insertion_values={
|
||||
"user_id": user_id,
|
||||
},
|
||||
desc="block_room",
|
||||
|
Loading…
Reference in New Issue
Block a user