Include the mimetype with the file info. Store the objectURL in state so that it can be used normally by the exising templates
This commit is contained in:
parent
842b5aed56
commit
12fc70c671
2 changed files with 58 additions and 25 deletions
|
@ -193,6 +193,9 @@ class ContentMessages {
|
|||
// with the information needed to decrypt the attachment and
|
||||
// add it under a file key.
|
||||
encryptInfo.url = url;
|
||||
if (file.type) {
|
||||
encryptInfo.mimetype = file.type;
|
||||
}
|
||||
content.file = encryptInfo;
|
||||
}
|
||||
return matrixClient.sendMessage(roomId, content);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue