Ensure that file is not attached if we've filtered it
This commit is contained in:
parent
c5908052ec
commit
a24d9f9979
1 changed files with 2 additions and 0 deletions
|
@ -184,6 +184,8 @@
|
|||
}
|
||||
const { name } = file;
|
||||
if (window.Signal.Util.isFileDangerous(name)) {
|
||||
this.deleteFiles();
|
||||
|
||||
const toast = new Whisper.DangerousFileTypeToast();
|
||||
toast.$el.insertAfter(this.$el);
|
||||
toast.render();
|
||||
|
|
Loading…
Add table
Reference in a new issue