Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Depublish a room from the public rooms list when it is upgraded #6232

Merged
merged 13 commits into from
Nov 1, 2019
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion synapse/federation/federation_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ def make_membership_event(
Note that this does not append any events to any graphs.

Args:
destinations (Iterable[unicode]): Candidate homeservers which are probably
destinations (Iterable[str]): Candidate homeservers which are probably
participating in the room.
room_id (str): The room in which the event will happen.
user_id (str): The user whose membership is being evented.
Expand Down
2 changes: 1 addition & 1 deletion synapse/handlers/federation.py
Original file line number Diff line number Diff line change
Expand Up @@ -1112,7 +1112,7 @@ def do_invite_join(self, target_hosts, room_id, joinee, content):
have finished processing the join.

Args:
target_hosts (Iterable[unicode]): List of servers to attempt to join the room with.
target_hosts (Iterable[str]): List of servers to attempt to join the room with.

room_id (str): The ID of the room to join.

Expand Down
7 changes: 7 additions & 0 deletions synapse/handlers/room_member.py
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,13 @@ def copy_user_state_on_room_upgrade(self, old_room_id, new_room_id, user_ids):
old_room_id, new_room_id, user_id
)
except Exception:
logger.warning(
"Error copying tags and/or push rules from rooms %s to %s for user %s. "
"Skipping...",
anoadragon453 marked this conversation as resolved.
Show resolved Hide resolved
old_room_id,
new_room_id,
user_id,
)
continue
anoadragon453 marked this conversation as resolved.
Show resolved Hide resolved

@defer.inlineCallbacks
Expand Down