summary refs log tree commit diff
path: root/synapse/storage/user_directory.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2017-06-01 14:58:48 +0100
committerErik Johnston <erik@matrix.org>2017-06-01 14:58:48 +0100
commit4d039aa2ca78730ca5f8bb9043ab75328004d7a1 (patch)
tree45228bb7292a2cabd0a7c89ecaab42f7d33d3569 /synapse/storage/user_directory.py
parentSplit the table in two (diff)
downloadsynapse-4d039aa2ca78730ca5f8bb9043ab75328004d7a1.tar.xz
Fix sqlite
Diffstat (limited to 'synapse/storage/user_directory.py')
-rw-r--r--synapse/storage/user_directory.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/user_directory.py b/synapse/storage/user_directory.py
index cab0afc5c3..bcf24fa4d0 100644
--- a/synapse/storage/user_directory.py
+++ b/synapse/storage/user_directory.py
@@ -368,7 +368,7 @@ class UserDirectoryStore(SQLBaseStore):
                 INNER JOIN users_in_pubic_room USING (user_id)
                 WHERE value MATCH ?
                 ORDER BY
-                    rank(matchinfo(user_directory)) DESC,
+                    rank(matchinfo(user_directory_search)) DESC,
                     display_name IS NULL,
                     avatar_url IS NULL
                 LIMIT ?