Fix sqlite

This commit is contained in:
Erik Johnston 2017-06-01 14:58:48 +01:00
parent 21e255a8f1
commit 4d039aa2ca
1 changed files with 1 additions and 1 deletions

View File

@ -368,7 +368,7 @@ class UserDirectoryStore(SQLBaseStore):
INNER JOIN users_in_pubic_room USING (user_id) INNER JOIN users_in_pubic_room USING (user_id)
WHERE value MATCH ? WHERE value MATCH ?
ORDER BY ORDER BY
rank(matchinfo(user_directory)) DESC, rank(matchinfo(user_directory_search)) DESC,
display_name IS NULL, display_name IS NULL,
avatar_url IS NULL avatar_url IS NULL
LIMIT ? LIMIT ?