You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
get_users_who_share_room_with_user(...) should use the users_who_share_private_rooms/users_in_public_rooms tables instead of calculating it themselves again (get_users_in_room mis-use) #13967
get_users_who_share_room_with_user(...) should use the users_who_share_private_rooms/users_in_public_rooms tables instead of calculating it themselves again.
This might be a nice optimization for the presence and device list sharing code where get_users_who_share_room_with_user is used.
get_users_who_share_room_with_user(...)should use theusers_who_share_private_rooms/users_in_public_roomstables instead of calculating it themselves again.This might be a nice optimization for the presence and device list sharing code where
get_users_who_share_room_with_useris used.synapse/synapse/storage/databases/main/roommember.py
Lines 768 to 777 in 6f0c3e6
Discovered while working on #13958 and seeing code for users sharing rooms in #13966
See #13575 (comment) for the original exploration around finding
get_users_in_roommis-uses.