From 24c77b48bdef0ee8b53d8624f10fb74abd79ce63 Mon Sep 17 00:00:00 2001 From: Josh Perez <60019601+josh-signal@users.noreply.github.com> Date: Fri, 21 Jan 2022 16:46:05 -0500 Subject: [PATCH] Disallow paste/drop images when there is a link preview --- ts/views/conversation_view.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ts/views/conversation_view.ts b/ts/views/conversation_view.ts index 9650415973..7788e49c91 100644 --- a/ts/views/conversation_view.ts +++ b/ts/views/conversation_view.ts @@ -963,6 +963,10 @@ export class ConversationView extends window.Backbone.View { // TODO DESKTOP-2426 async processAttachments(files: Array): Promise { + if (this.preview) { + return; + } + const { addAttachment, addPendingAttachment,