From e5d4c6be732ade17872a2292410b4077904a41b4 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Wed, 28 Aug 2019 12:04:05 +0200 Subject: [PATCH] [Store] Fix query --- lib/src/Store.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/Store.dart b/lib/src/Store.dart index 0803844..abc7b2f 100644 --- a/lib/src/Store.dart +++ b/lib/src/Store.dart @@ -212,7 +212,7 @@ class Store { json.encode(userUpdate.content["content"]), ]); else if (userUpdate.type == "presence") - txn.rawInsert("INSERT OR REPLACE INTO Presence VALUES(?, ?)", [ + txn.rawInsert("INSERT OR REPLACE INTO Presences VALUES(?, ?)", [ userUpdate.eventType, userUpdate.content["sender"], json.encode(userUpdate.content["content"]),