Watch
0
0
Fork
You've already forked hyperhive
0

replace send_file_dm with open_dm resolver (per review)

This commit is contained in:
damocles 2026-06-15 17:21:23 +02:00 • committed by mara
commit 07941421c1

View file

@ -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,