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