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

View file

@ -70,7 +70,7 @@ class Room {
Map<String, RoomAccountData> roomAccountData = {}; Map<String, RoomAccountData> roomAccountData = {};
/// ID of the fully read marker event. /// 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. /// If something changes, this callback will be triggered.
onRoomUpdate onUpdate; onRoomUpdate onUpdate;