1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-07 10:46:24 +03:00

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
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,