From 88585fb192cd5446967567667788452b25aebf6d Mon Sep 17 00:00:00 2001 From: Krille Date: Mon, 8 May 2023 15:25:36 +0200 Subject: [PATCH] fix: Scrolldown button --- lib/pages/chat/chat.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/pages/chat/chat.dart b/lib/pages/chat/chat.dart index 67095237..47240669 100644 --- a/lib/pages/chat/chat.dart +++ b/lib/pages/chat/chat.dart @@ -272,7 +272,7 @@ class ChatController extends State { super.initState(); sendingClient = Matrix.of(context).client; readMarkerEventId = room.fullyRead; - loadTimelineFuture = _getTimeline(); + loadTimelineFuture = _getTimeline(eventContextId: readMarkerEventId); } void updateView() { @@ -288,8 +288,8 @@ class ChatController extends State { }) async { await Matrix.of(context).client.roomsLoading; await Matrix.of(context).client.accountDataLoading; - eventContextId ??= room.fullyRead; - if (!eventContextId.isValidMatrixId || eventContextId.sigil != '\$') { + if (eventContextId != null && + (!eventContextId.isValidMatrixId || eventContextId.sigil != '\$')) { eventContextId = null; } try {