From 1f3aaf47d160f8bfc9284f5613ec9e4116241c0b Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Fri, 14 Feb 2020 15:26:39 +0100 Subject: [PATCH] Fix broken states --- lib/utils/famedlysdk_store.dart | 3 ++- pubspec.yaml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/utils/famedlysdk_store.dart b/lib/utils/famedlysdk_store.dart index 2f61368..fc6e6bf 100644 --- a/lib/utils/famedlysdk_store.dart +++ b/lib/utils/famedlysdk_store.dart @@ -445,7 +445,8 @@ class ExtendedStore extends Store implements ExtendedStoreAPI { } Future>> getStatesFromRoomId(String id) async { - return _db.rawQuery("SELECT * FROM RoomStates WHERE room_id=?", [id]); + return _db.rawQuery( + "SELECT * FROM RoomStates WHERE room_id=? AND type IS NOT NULL", [id]); } Future>> getAccountDataFromRoomId(String id) async { diff --git a/pubspec.yaml b/pubspec.yaml index 9eda8c9..64b65c5 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -11,7 +11,7 @@ description: Chat with your friends. # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. # Read more about iOS versioning at # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html -version: 0.7.3+23 +version: 0.7.4+24 environment: sdk: ">=2.6.0 <3.0.0"