From 14b89263b72c3884e21185383aff0ca27e643db2 Mon Sep 17 00:00:00 2001 From: Marcel Date: Thu, 18 Jul 2019 20:03:45 +0200 Subject: [PATCH] [Store] Add missing comma --- lib/src/Store.dart | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/lib/src/Store.dart b/lib/src/Store.dart index 13096f9..d8f69c2 100644 --- a/lib/src/Store.dart +++ b/lib/src/Store.dart @@ -624,16 +624,19 @@ class Store { } Future forgetNotification(String roomID) async { - await db.rawDelete("DELETE FROM NotificationsCache WHERE chat_id=?", [roomID]); + await db + .rawDelete("DELETE FROM NotificationsCache WHERE chat_id=?", [roomID]); return; } Future addNotification(String roomID, String event_id, int uniqueID) async { - await db.rawInsert("INSERT INTO NotificationsCache VALUES (?, ?,?)", [uniqueID, roomID, event_id]); + await db.rawInsert("INSERT INTO NotificationsCache VALUES (?, ?,?)", + [uniqueID, roomID, event_id]); return; } - Future>> getNotificationByRoom(String room_id) async { + Future>> getNotificationByRoom( + String room_id) async { List> res = await db.rawQuery( "SELECT * FROM NotificationsCache WHERE chat_id=?", [room_id]); if (res.length == 0) return null; @@ -717,9 +720,10 @@ class Store { 'UNIQUE(chat_id, matrix_id))'; /// The database scheme for the NotificationsCache class. - static final String NotificationsCacheScheme = 'CREATE TABLE IF NOT EXISTS NotificationsCache(' + - 'id int PRIMARY KEY' - 'chat_id TEXT, ' + // The chat id - 'event_id TEXT, ' + // The matrix id of the Event - 'UNIQUE(event_id))'; + static final String NotificationsCacheScheme = + 'CREATE TABLE IF NOT EXISTS NotificationsCache(' + + 'id int PRIMARY KEY, ' + + 'chat_id TEXT, ' + // The chat id + 'event_id TEXT, ' + // The matrix id of the Event + 'UNIQUE(event_id))'; }