mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-07-12 01:16:40 +02:00
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 <strawberry@puppygock.gay>
This commit is contained in:
parent
d64cfcdc7a
commit
6a450e8e94
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ pub(crate) async fn get_presence_route(body: Ruma<get_presence::v3::Request>) ->
|
|||
.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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue