Default to "original" for C2PA only in direct rooms

Issue #677
This commit is contained in:
N-Pex 2025-09-02 09:29:05 +02:00
parent b9e221bc30
commit 2dfaef9b8f
4 changed files with 21 additions and 12 deletions

View file

@ -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;

View file

@ -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();