Merge branch 'krille/nullcheck' into 'main'
fix: Missing null check See merge request famedly/famedlysdk!591
This commit is contained in:
commit
0a64ed2c6f
|
|
@ -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