fix: do not expect that all http requests are valid reqwest requests

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
Matthias Ahouansou 2024-04-01 23:22:19 -04:00 committed by June
parent 93a43a0eda
commit c31fb7134a
6 changed files with 30 additions and 41 deletions

View file

@ -53,10 +53,7 @@ pub async fn get_presence_route(body: Ruma<get_presence::v3::Request>) -> Result
{
let room_id = room_id?;
if let Some(presence) = services()
.presence
.get_presence(&room_id, sender_user)?
{
if let Some(presence) = services().presence.get_presence(&room_id, sender_user)? {
presence_event = Some(presence);
break;
}