rustfmt send_file handlers

This commit is contained in:
damocles 2026-06-15 17:08:06 +02:00 committed by mara
commit 19f1fa4f28

View file

@ -194,11 +194,11 @@ async fn resolve_or_create_dm(
let uid: OwnedUserId = user_id
.parse()
.map_err(|e| DaemonResponse::error(format!("invalid user_id {user_id}: {e}")))?;
if let Some(room) = client
.joined_rooms()
.into_iter()
.find(|r| r.direct_targets().iter().any(|t| t.as_str() == uid.as_str()))
{
if let Some(room) = client.joined_rooms().into_iter().find(|r| {
r.direct_targets()
.iter()
.any(|t| t.as_str() == uid.as_str())
}) {
return Ok(room);
}
client