Skip to content

Commit

Permalink
Ensure that file is not attached if we've filtered it
Browse files Browse the repository at this point in the history
  • Loading branch information
scottnonnenberg-signal committed Oct 17, 2018
1 parent c590805 commit a24d9f9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/views/file_input_view.js
Expand Up @@ -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();
Expand Down

0 comments on commit a24d9f9

Please sign in to comment.