[Room] Add null checker.

This commit is contained in:
Christian 2019-09-03 14:58:11 +00:00 committed by Marcel
parent ed9e0caea5
commit 964f8c1f36

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;