-
Notifications
You must be signed in to change notification settings - Fork 190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sliding sync: Ignore invites from ignored users #17729
Sliding sync: Ignore invites from ignored users #17729
Conversation
for room_id, change in changes.items(): | ||
if change is None: | ||
# Remove rooms that the user joined after the `to_token` | ||
room_membership_for_user_map.pop(room_id) | ||
room_membership_for_user_map.pop(room_id, None) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unrelated but added a default to the .pop(...)
so we don't run into a KeyError
if the room_id
is already removed from the dict.
# TODO: It would be nice to avoid these copies | ||
room_membership_for_user_map = dict(room_membership_for_user_map) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another reason to potentially add SoftDeleteChainMap
(context #17725 (comment))
Would tackle in a separate PR though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a small change. Otherwise things look good.
Thanks for the review @devonh 🐻❄️ |
Ignore invites from ignored users (
m.ignored_user_list
in account data)Pull Request Checklist
EventStore
toEventWorkerStore
.".code blocks
.(run the linters)