Merge branch 'store-fix-query' into 'master'

[Store] Fix db query

See merge request famedly/famedlysdk!45
This commit is contained in:
Phillipp Kurtz 2019-07-23 09:20:52 +00:00
commit 01a322d438

View file

@ -303,8 +303,8 @@ class Store {
// This event means, that the canonical alias of a room has been changed, so
// it has to be changed in the database
case "m.room.canonical_alias":
txn.rawUpdate("UPDATE Chats SET canonical_alias=? WHERE id=?",
[eventContent["content"]["alias"] ?? "", chat_id]);
txn.rawUpdate("UPDATE Rooms SET canonical_alias=? WHERE id=?",
[eventContent["content"]["alias"], chat_id]);
break;
// This event means, that the topic of a room has been changed, so
// it has to be changed in the database