Skip to content

Send multiple attachments in a single message

Matti Viljanen requested to merge multi-attachment-sending into main

This turned out to be a nice and easy one, against all odds! The backend supported this with little changes.

It uses JSON.stringify(attachments) which is the easy method of sending an array from QML to Rust, but I think it's okay, since processing attachment names and mime types isn't the slow point in the flow. It passes the JavaScript object array from QML to Rust (turned into QVariantList<QVariantMap<QString, QString>>) and tries hard to avoid copying data around.

Fixes #51 (closed)

Requires qmetaobject!308

Edited by Matti Viljanen

Merge request reports