summary refs log tree commit diff
path: root/synapse/storage/controllers
diff options
context:
space:
mode:
authorGabriel FĂ©ron <g@leirbag.net>2023-05-31 15:18:37 +0200
committerGitHub <noreply@github.com>2023-05-31 09:18:37 -0400
commitdaf3a679089770e00d1b70d8ed2f91ab108b73e3 (patch)
tree212eed1298ad57c6c54238ab393f10c0b626582d /synapse/storage/controllers
parentAdd stricter mypy options (#15694) (diff)
downloadsynapse-daf3a679089770e00d1b70d8ed2f91ab108b73e3.tar.xz
Add get_canonical_room_alias to module API (#15450)
Co-authored-by: Boxdot <d@zerovolt.org>
Diffstat (limited to 'synapse/storage/controllers')
-rw-r--r--synapse/storage/controllers/state.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/controllers/state.py b/synapse/storage/controllers/state.py
index 7089b0a1d8..233df7cce2 100644
--- a/synapse/storage/controllers/state.py
+++ b/synapse/storage/controllers/state.py
@@ -485,7 +485,7 @@ class StateStorageController:
         if not event:
             return None
 
-        return event.content.get("canonical_alias")
+        return event.content.get("alias")
 
     @trace
     @tag_args