chore: Follow up missing null check
This commit is contained in:
parent
2084615df1
commit
5829446afa
1 changed files with 2 additions and 1 deletions
|
|
@ -289,7 +289,8 @@ class ChatController extends State<ChatPageWithRoom>
|
|||
setReadMarker();
|
||||
return;
|
||||
}
|
||||
if (timeline!.events.any((event) => event.eventId == fullyRead)) {
|
||||
if (timeline?.events.any((event) => event.eventId == fullyRead) ??
|
||||
false) {
|
||||
Logs().v('Scroll up to visible event', fullyRead);
|
||||
setReadMarker();
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue