replace send_file_dm with open_dm resolver (per review)
This commit is contained in:
parent
19f1fa4f28
commit
07941421c1
4 changed files with 26 additions and 44 deletions
|
|
@ -70,11 +70,7 @@ async fn dispatch(req: DaemonRequest, client: &Client) -> DaemonResponse {
|
|||
path,
|
||||
caption,
|
||||
} => handlers::send_file(client, &room, &path, caption.as_deref()).await,
|
||||
DaemonRequest::SendFileDm {
|
||||
user_id,
|
||||
path,
|
||||
caption,
|
||||
} => handlers::send_file_dm(client, &user_id, &path, caption.as_deref()).await,
|
||||
DaemonRequest::OpenDm { user_id } => handlers::open_dm(client, &user_id).await,
|
||||
DaemonRequest::SendReaction {
|
||||
room,
|
||||
event_id,
|
||||
|
|
|
|||
Loading…
Reference in a new issue