mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-10 10:25:11 +00:00
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…
Reference in a new issue