parent
b9e221bc30
commit
2dfaef9b8f
4 changed files with 21 additions and 12 deletions
|
|
@ -1435,7 +1435,7 @@ export default {
|
|||
if (!this.uploadBatch) {
|
||||
this.uploadBatch = this.$matrix.attachmentManager.createUpload(this.room);
|
||||
}
|
||||
this.uploadBatch?.addAttachments(files.map((f) => this.$matrix.attachmentManager.createAttachment(f)));
|
||||
this.uploadBatch?.addFiles(files);
|
||||
},
|
||||
|
||||
showStickerPicker() {
|
||||
|
|
@ -1886,7 +1886,7 @@ export default {
|
|||
|
||||
onVoiceRecording(event) {
|
||||
const batch = this.$matrix.attachmentManager.createUpload(this.room);
|
||||
batch.addAttachments([this.$matrix.attachmentManager.createAttachment(event.file)]);
|
||||
batch.addFiles([event.file]);
|
||||
var text = undefined;
|
||||
if (this.currentInput && this.currentInput.length > 0) {
|
||||
text = this.currentInput;
|
||||
|
|
|
|||
|
|
@ -312,7 +312,7 @@ export default defineComponent({
|
|||
const file = droppedFiles.item(i);
|
||||
if (file) files.push(file);
|
||||
}
|
||||
this.batch.addAttachments(files.map((f) => this.$matrix.attachmentManager.createAttachment(f)));
|
||||
this.batch.addFiles(files);
|
||||
},
|
||||
close() {
|
||||
this.batch.cancel();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue