Re-add the "send more files" option to file drop

This commit is contained in:
N-Pex 2025-10-17 17:06:00 +02:00
parent b30f50b96d
commit 47373c447b
3 changed files with 17 additions and 0 deletions

View file

@ -35,6 +35,7 @@
v-on:add-files="(files) => addAttachments(files)"
:batch="uploadBatch"
v-on:close="closeFileMode"
v-on:reset="resetFileMode"
:fileModeMode="true"
:defaultRootMessageText="$t('file_mode.files')"
/>
@ -1975,6 +1976,10 @@ export default {
}
},
resetFileMode() {
this.uploadBatch = this.$matrix.attachmentManager.createUpload(this.room);
},
closeFileMode() {
this.uploadBatch?.cancel();
this.uploadBatch = undefined;