matrix-rust-sdk icon indicating copy to clipboard operation
matrix-rust-sdk copied to clipboard

Add support for real-time upload progress in sendImage, sendVideo, and other send* methods

Open Alireza-dev-abbasian opened this issue 1 month ago • 1 comments

Currently, the sendImage, sendVideo, sendFile, and similar methods in the Matrix Rust SDK only report progress as 0% or 100% when uploading media to timelines. This makes it difficult to provide real-time, chunk-based progress updates to users.

Suggested Changes: Add an optional ProgressWatcher parameter to the send* methods. Emit periodic progress updates during the upload (e.g., every few KB or every 250ms). Ensure backward compatibility by making the progress parameter optional.

This would enable smoother user experience with accurate upload progress while keeping existing functionality intact.

Alireza-dev-abbasian avatar Nov 10 '25 10:11 Alireza-dev-abbasian

Hello,

You can use the Send Queue to send messages, and get automatic retries, upload progress etc. Interesting entry points:

Hywan avatar Nov 10 '25 17:11 Hywan