From ae4dee813328fe0025866dcdc1cb279d327d50d4 Mon Sep 17 00:00:00 2001 From: JHansen Date: Mon, 8 May 2023 12:02:15 +0000 Subject: [PATCH] Fix read reciepts --- lib/pages/chat/chat.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/pages/chat/chat.dart b/lib/pages/chat/chat.dart index 78b3eff37..6824f6f98 100644 --- a/lib/pages/chat/chat.dart +++ b/lib/pages/chat/chat.dart @@ -376,6 +376,10 @@ class ChatController extends State { room.setTyping(false); currentlyTyping = false; } + // then cancel the old timeline + // fixes bug with read reciepts and quick switching + loadTimelineFuture = _getTimeline(eventContextId: room.fullyRead); + // then set the new sending client setState(() => sendingClient = c); }