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

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:20:59 +01:00
parent 42de77e588
commit ef88e02931
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,