mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-23 20:00:00 +00:00
Ensure that file is not attached if we've filtered it
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user