Merge pull request #605 from SijmenSchoon/feature/pastefiles
Add support for pasting files into the text box
This commit is contained in:
commit
6c7b191577
3 changed files with 16 additions and 6 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue