From 25f5d5f4fd1246911ba8c3ca34ea6c1263e97e77 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 78b3eff3..6824f6f9 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); }