[Store] correct return type

This commit is contained in:
Marcel 2019-07-18 19:18:01 +02:00
parent d4883acf28
commit 584bd92f7d
No known key found for this signature in database
GPG Key ID: B5E03B5BF119B26C
1 changed files with 2 additions and 2 deletions

View File

@ -632,8 +632,8 @@ class Store {
return;
}
Future<List<Map<String, String>>> getNotificationByRoom(String room_id) async {
List<Map<String, String>> res = await db.rawQuery(
Future<List<Map<String, dynamic>>> getNotificationByRoom(String room_id) async {
List<Map<String, dynamic>> res = await db.rawQuery(
"SELECT * FROM NotificationsCache WHERE chat_id=?", [room_id]);
if (res.length == 0) return null;
return res;