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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user