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 let uid: OwnedUserId = user_id
.parse() .parse()
.map_err(|e| DaemonResponse::error(format!("invalid user_id {user_id}: {e}")))?; .map_err(|e| DaemonResponse::error(format!("invalid user_id {user_id}: {e}")))?;
if let Some(room) = client if let Some(room) = client.joined_rooms().into_iter().find(|r| {
.joined_rooms() r.direct_targets()
.into_iter() .iter()
.find(|r| r.direct_targets().iter().any(|t| t.as_str() == uid.as_str())) .any(|t| t.as_str() == uid.as_str())
{ }) {
return Ok(room); return Ok(room);
} }
client client