From 81648dbf9511b32a6e023d556061bb8b74fe41ed Mon Sep 17 00:00:00 2001 From: Tom Date: Fri, 17 Jul 2026 23:07:29 -0700 Subject: [PATCH] fix: presence key was incorrect after other related update (#861) * fix: presence key was incorrect after other related update Signed-off-by: IAmTomahawkx * rust analyzer try not to be annoying challenge Signed-off-by: IAmTomahawkx --------- Signed-off-by: IAmTomahawkx --- crates/core/presence/src/lib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/core/presence/src/lib.rs b/crates/core/presence/src/lib.rs index ce7ce46f..e80cf9fd 100644 --- a/crates/core/presence/src/lib.rs +++ b/crates/core/presence/src/lib.rs @@ -87,7 +87,9 @@ async fn delete_session_internal(user_id: &str, session_id: u32, skip_region: bo /// Check whether a given user ID is online pub async fn is_online(user_id: &str) -> bool { if let Ok(mut conn) = get_connection().await { - conn.exists(user_id).await.unwrap_or(false) + conn.exists(format!("sessions:{user_id}")) + .await + .unwrap_or(false) } else { false }