From 1f7cab31a60ede164b24ccf4bfb6528439db3753 Mon Sep 17 00:00:00 2001 From: DJ2LS Date: Wed, 22 Mar 2023 22:03:52 +0000 Subject: [PATCH] Prettified Code! --- gui/preload-chat.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/gui/preload-chat.js b/gui/preload-chat.js index 0bab96e9..66ee63e4 100644 --- a/gui/preload-chat.js +++ b/gui/preload-chat.js @@ -1355,14 +1355,12 @@ update_chat = function (obj) { console.log("Removed message " + obj._id.toString()); // stop transmission if deleted message is still in progress - if(obj.status == "transmitting"){ - let Data = { - command: "stop_transmission", - }; - ipcRenderer.send("run-tnc-command", Data); - + if (obj.status == "transmitting") { + let Data = { + command: "stop_transmission", + }; + ipcRenderer.send("run-tnc-command", Data); } - }); //scrollMessagesToBottom(); }