[Store] Fix db query

This commit is contained in:
Christian 2019-07-23 09:20:52 +00:00 committed by Phillipp Kurtz
parent f1c78b6406
commit b7d8b53b46

View file

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