summary refs log tree commit diff
path: root/synapse/rest/client/shared_rooms.py
diff options
context:
space:
mode:
Diffstat (limited to 'synapse/rest/client/shared_rooms.py')
-rw-r--r--synapse/rest/client/shared_rooms.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/rest/client/shared_rooms.py b/synapse/rest/client/shared_rooms.py
index 09a46737de..e669fa7890 100644
--- a/synapse/rest/client/shared_rooms.py
+++ b/synapse/rest/client/shared_rooms.py
@@ -41,7 +41,7 @@ class UserSharedRoomsServlet(RestServlet):
     def __init__(self, hs: "HomeServer"):
         super().__init__()
         self.auth = hs.get_auth()
-        self.store = hs.get_datastore()
+        self.store = hs.get_datastores().main
         self.user_directory_active = hs.config.server.update_user_directory
 
     async def on_GET(