Merge branch 'room-fix-fullyread' into 'master'

[Room] Add null checker.

See merge request famedly/famedlysdk!72
This commit is contained in:
Marcel 2019-09-03 14:58:12 +00:00
commit 769c5a0697
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ class Room {
Map<String, RoomAccountData> roomAccountData = {};
/// ID of the fully read marker event.
String get fullyRead => roomAccountData["m.fully_read"].content["event_id"];
String get fullyRead => roomAccountData["m.fully_read"] != null ? roomAccountData["m.fully_read"].content["event_id"] : "";
/// If something changes, this callback will be triggered.
onRoomUpdate onUpdate;