This repository was archived by the owner on Apr 26, 2024. It is now read-only.
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
Open
Description
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.
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_room
mis-uses.