From 774d9aebd1921faed75dce34271f2d8a2e53bc20 Mon Sep 17 00:00:00 2001 From: webbrain-one <295484252+webbrain-one@users.noreply.github.com> Date: Wed, 5 Aug 2026 04:02:53 +0300 Subject: [PATCH] Fix client freeze when sending images Prevents the preload script from crashing the UI after initiating an image send, which previously caused the client to freeze and lose input focus. Resolves reported issues on Linux mobile environments. Closes #5 --- src/preload.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/preload.js b/src/preload.js index 0aa0280..d460719 100755 --- a/src/preload.js +++ b/src/preload.js @@ -60,9 +60,11 @@ window.addEventListener("click", function() { // navigation(); //} - if (document.querySelector('span[data-icon="attach-image"]')){ - attachresponsive(); - } else if (document.querySelector('[data-animate-dropdown-item]')){ + // Disabled attachresponsive to fix input layout breakage + // if (document.querySelector('span[data-icon="attach-image"]')){ + // attachresponsive(); + // } + if (document.querySelector('[data-animate-dropdown-item]')){ modaldialogresponsive(); } else if (document.querySelector('[data-testid="contact-list-key"]')){ startnewchat();