|
|
|
@ -281,10 +281,10 @@
|
|
|
|
const contentType = file.type;
|
|
|
|
const contentType = file.type;
|
|
|
|
|
|
|
|
|
|
|
|
// TODO: remove this when clients are ready to remove multiple image attachments
|
|
|
|
// TODO: remove this when clients are ready to remove multiple image attachments
|
|
|
|
if (this.attachments.length > 0) {
|
|
|
|
// if (this.attachments.length > 0) {
|
|
|
|
this.showMaxOneAttachmentError();
|
|
|
|
// this.showMaxOneAttachmentError();
|
|
|
|
return;
|
|
|
|
// return;
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
if (window.Signal.Util.isFileDangerous(fileName)) {
|
|
|
|
if (window.Signal.Util.isFileDangerous(fileName)) {
|
|
|
|
this.showDangerousError();
|
|
|
|
this.showDangerousError();
|
|
|
|
|