mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-07-31 19:48:39 -04:00
Rewrite userdir to be faster (#4537)
This commit is contained in:
parent
8f4b9f5210
commit
f6135d06cf
6 changed files with 401 additions and 410 deletions
|
@ -35,14 +35,12 @@ class UserDirectoryStoreTestCase(unittest.TestCase):
|
|||
# alice and bob are both in !room_id. bobby is not but shares
|
||||
# a homeserver with alice.
|
||||
yield self.store.add_profiles_to_user_dir(
|
||||
"!room:id",
|
||||
{
|
||||
ALICE: ProfileInfo(None, "alice"),
|
||||
BOB: ProfileInfo(None, "bob"),
|
||||
BOBBY: ProfileInfo(None, "bobby"),
|
||||
},
|
||||
)
|
||||
yield self.store.add_users_to_public_room("!room:id", [ALICE, BOB])
|
||||
yield self.store.add_users_who_share_room(
|
||||
"!room:id", False, ((ALICE, BOB), (BOB, ALICE))
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue