Re-add docstring, with caveats detailed

This commit is contained in:
Andrew Morgan 2019-11-04 18:17:11 +00:00
parent 0287d033ee
commit c2203bea57
3 changed files with 7 additions and 3 deletions

View File

@ -514,7 +514,7 @@ class RoomMemberHandler(object):
if old_room and old_room["is_public"]: if old_room and old_room["is_public"]:
yield self.store.set_room_is_public(old_room_id, False) yield self.store.set_room_is_public(old_room_id, False)
yield self.store.set_room_is_public(room_id, True) yield self.store.set_room_is_public(room_id, True)
# Check if any groups we own contain the predecessor room # Check if any groups we own contain the predecessor room
local_group_ids = yield self.store.get_local_groups_for_room(old_room_id) local_group_ids = yield self.store.get_local_groups_for_room(old_room_id)
for group_id in local_group_ids: for group_id in local_group_ids:

View File

@ -552,7 +552,7 @@ class GroupServerStore(SQLBaseStore):
keyvalues={"group_id": group_id, "role_id": role_id, "user_id": user_id}, keyvalues={"group_id": group_id, "role_id": role_id, "user_id": user_id},
desc="remove_user_from_summary", desc="remove_user_from_summary",
) )
def get_local_groups_for_room(self, room_id): def get_local_groups_for_room(self, room_id):
"""Get all of the local group that contain a given room """Get all of the local group that contain a given room
Args: Args:

View File

@ -285,7 +285,11 @@ class StateGroupWorkerStore(
room_id (str) room_id (str)
Returns: Returns:
Deferred[unicode|None]: predecessor room id Deferred[dict|None]: A dictionary containing the structure of the predecessor
field from the room's create event. The structure is subject to other servers,
but it is expected to be:
* room_id (str): The room ID of the predecessor room
* event_id (str): The ID of the tombstone event in the predecessor room
Raises: Raises:
NotFoundError if the room is unknown NotFoundError if the room is unknown