fix: Missing null check
This commit is contained in:
parent
71fb80aa1f
commit
19905e348a
|
|
@ -445,9 +445,11 @@ class Room {
|
||||||
EventType.MarkedUnread,
|
EventType.MarkedUnread,
|
||||||
MarkedUnread(unread).toJson(),
|
MarkedUnread(unread).toJson(),
|
||||||
);
|
);
|
||||||
if (unread == false) {
|
if (unread == false && lastEvent != null) {
|
||||||
await sendReadMarker(lastEvent.eventId,
|
await sendReadMarker(
|
||||||
readReceiptLocationEventId: lastEvent.eventId);
|
lastEvent.eventId,
|
||||||
|
readReceiptLocationEventId: lastEvent.eventId,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue