drop stale send_file_dm doc refs (per review)

This commit is contained in:
damocles 2026-06-15 17:26:32 +02:00 committed by mara
commit 801b886a4c

View file

@ -226,14 +226,14 @@ pub async fn send_dm(client: &Client, user_id: &str, body: &str) -> DaemonRespon
}
}
/// Maximum file size accepted by `send_file` / `send_file_dm`.
/// Maximum file size accepted by `send_file`.
const MAX_UPLOAD_BYTES: u64 = 50 * 1024 * 1024;
/// Read a local file and post it as a matrix attachment to `room`,
/// inferring the MIME type from the file extension. An optional
/// `caption` is sent as a best-effort follow-up text message (the
/// attachment has already landed, so a caption failure is non-fatal).
/// Shared by `send_file` and `send_file_dm`.
/// Used by `send_file`.
async fn upload_attachment(
room: &matrix_sdk::Room,
path: &str,