From b7d8b53b46fb906c44525a75795fc54d0ff6eaa5 Mon Sep 17 00:00:00 2001 From: Christian Date: Tue, 23 Jul 2019 09:20:52 +0000 Subject: [PATCH] [Store] Fix db query --- lib/src/Store.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/Store.dart b/lib/src/Store.dart index c3e1223..6a8cf05 100644 --- a/lib/src/Store.dart +++ b/lib/src/Store.dart @@ -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