From 6a450e8e94ab501d214255d97e0d89a8de807270 Mon Sep 17 00:00:00 2001 From: strawberry Date: Thu, 2 May 2024 03:55:25 -0400 Subject: [PATCH] fix: get the presence of the requested user instead of ourselves after getting the shared rooms with the target user, we actually only get the presence of ourselves instead of the requested user Signed-off-by: strawberry --- src/api/client_server/presence.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/client_server/presence.rs b/src/api/client_server/presence.rs index 29310b42..3c62c9d5 100644 --- a/src/api/client_server/presence.rs +++ b/src/api/client_server/presence.rs @@ -42,7 +42,7 @@ pub(crate) async fn get_presence_route(body: Ruma) -> .user .get_shared_rooms(vec![sender_user.clone(), body.user_id.clone()])? { - if let Some(presence) = services().presence.get_presence(sender_user)? { + if let Some(presence) = services().presence.get_presence(&body.user_id)? { presence_event = Some(presence); break; }