mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 22:14:55 -04:00
Revert "Modify group room association API to allow modification of is_public"
This commit is contained in:
parent
d305987b40
commit
94ff2cda73
6 changed files with 22 additions and 32 deletions
|
@ -846,25 +846,19 @@ class GroupServerStore(SQLBaseStore):
|
|||
)
|
||||
return self.runInteraction("remove_user_from_group", _remove_user_from_group_txn)
|
||||
|
||||
def update_room_group_association(self, group_id, room_id, is_public):
|
||||
return self._simple_upsert(
|
||||
def add_room_to_group(self, group_id, room_id, is_public):
|
||||
return self._simple_insert(
|
||||
table="group_rooms",
|
||||
keyvalues={
|
||||
values={
|
||||
"group_id": group_id,
|
||||
"room_id": room_id,
|
||||
},
|
||||
values={
|
||||
"is_public": is_public,
|
||||
},
|
||||
insertion_values={
|
||||
"group_id": group_id,
|
||||
"room_id": room_id,
|
||||
},
|
||||
desc="update_room_group_association",
|
||||
desc="add_room_to_group",
|
||||
)
|
||||
|
||||
def delete_room_group_association(self, group_id, room_id):
|
||||
def _delete_room_group_association_txn(txn):
|
||||
def remove_room_from_group(self, group_id, room_id):
|
||||
def _remove_room_from_group_txn(txn):
|
||||
self._simple_delete_txn(
|
||||
txn,
|
||||
table="group_rooms",
|
||||
|
@ -883,7 +877,7 @@ class GroupServerStore(SQLBaseStore):
|
|||
},
|
||||
)
|
||||
return self.runInteraction(
|
||||
"delete_room_group_association", _delete_room_group_association_txn,
|
||||
"remove_room_from_group", _remove_room_from_group_txn,
|
||||
)
|
||||
|
||||
def get_publicised_groups_for_user(self, user_id):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue