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;
|
const { name } = file;
|
||||||
if (window.Signal.Util.isFileDangerous(name)) {
|
if (window.Signal.Util.isFileDangerous(name)) {
|
||||||
|
this.deleteFiles();
|
||||||
|
|
||||||
const toast = new Whisper.DangerousFileTypeToast();
|
const toast = new Whisper.DangerousFileTypeToast();
|
||||||
toast.$el.insertAfter(this.$el);
|
toast.$el.insertAfter(this.$el);
|
||||||
toast.render();
|
toast.render();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue