From a7d9c3e1d71e273ad9aca3a3cb3d297dfd7e7666 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Commaille?= Date: Mon, 2 Oct 2023 14:25:25 +0200 Subject: [PATCH] room-history: Only wait 5 seconds to mark a message as read --- src/session/view/content/room_history/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/session/view/content/room_history/mod.rs b/src/session/view/content/room_history/mod.rs index 91a0a74f..c7cb434c 100644 --- a/src/session/view/content/room_history/mod.rs +++ b/src/session/view/content/room_history/mod.rs @@ -85,7 +85,7 @@ use crate::{ /// The time to wait before considering that scrolling has ended. const SCROLL_TIMEOUT: Duration = Duration::from_millis(500); /// The time to wait before considering that messages on a screen where read. -const READ_TIMEOUT: Duration = Duration::from_secs(10); +const READ_TIMEOUT: Duration = Duration::from_secs(5); #[derive(Debug, Default, Hash, Eq, PartialEq, Clone, Copy, glib::Enum)] #[repr(i32)]