Merge pull request #605 from SijmenSchoon/feature/pastefiles

Add support for pasting files into the text box
This commit is contained in:
Matthew Hodgson 2017-03-09 17:55:58 +00:00 committed by GitHub
commit 6c7b191577
3 changed files with 16 additions and 6 deletions

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,