Merge branch 'room-fix-fullyread' into 'master'
[Room] Add null checker. See merge request famedly/famedlysdk!72
This commit is contained in:
commit
769c5a0697
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue