Encrypt the voice message file if needed
Fixes https://github.com/vector-im/element-web/issues/17729 "oops, should have done that"
This commit is contained in:
parent
6d6995e6fb
commit
cb0d2a2c4f
3 changed files with 21 additions and 20 deletions
|
@ -307,7 +307,7 @@ function readFileAsArrayBuffer(file: File | Blob): Promise<ArrayBuffer> {
|
|||
* If the file is unencrypted then the object will have a "url" key.
|
||||
* If the file is encrypted then the object will have a "file" key.
|
||||
*/
|
||||
function uploadFile(
|
||||
export function uploadFile(
|
||||
matrixClient: MatrixClient,
|
||||
roomId: string,
|
||||
file: File | Blob,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue