rustfmt send_file handlers
This commit is contained in:
parent
cbbd6f3d6e
commit
19f1fa4f28
1 changed files with 5 additions and 5 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue