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(); }