Ensure that file is not attached if we've filtered it

This commit is contained in:
Scott Nonnenberg 2018-10-17 14:30:19 -07:00
parent c5908052ec
commit a24d9f9979

View file

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