Add support for pasting into the text box

Only supports the new rich-text-supporting text editor
This commit is contained in:
Sijmen Schoon
2017-01-08 02:21:36 +01:00
parent 42de77e588
commit ef88e02931
3 changed files with 16 additions and 6 deletions
+2 -2
View File
@@ -276,7 +276,7 @@ class ContentMessages {
sendContentToRoom(file, roomId, matrixClient) {
const content = {
body: file.name,
body: file.name || 'Attachment',
info: {
size: file.size,
}
@@ -316,7 +316,7 @@ class ContentMessages {
}
const upload = {
fileName: file.name,
fileName: file.name || 'Attachment',
roomId: roomId,
total: 0,
loaded: 0,