From 2eb5907d95507cea8f0abc79d69215d010730284 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Kub=C3=ADk?= Date: Mon, 21 Nov 2022 22:56:58 +0100 Subject: [PATCH] fix(presence): fix configuration values for presence status --- src/database/key_value/rooms/edus/presence.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/database/key_value/rooms/edus/presence.rs b/src/database/key_value/rooms/edus/presence.rs index 117c9da5..ee41584a 100644 --- a/src/database/key_value/rooms/edus/presence.rs +++ b/src/database/key_value/rooms/edus/presence.rs @@ -391,9 +391,9 @@ fn parse_presence_event(bytes: &[u8], presence_timestamp: u64) -> Result PresenceState { let globals = &services().globals; - return if last_active_ago < globals.presence_idle_timeout() { + return if last_active_ago < globals.presence_idle_timeout() * 1000 { PresenceState::Online - } else if last_active_ago < globals.presence_offline_timeout() { + } else if last_active_ago < globals.presence_offline_timeout() * 1000 { PresenceState::Unavailable } else { PresenceState::Offline