stop transmission if deleted message is still in progress

This commit is contained in:
DJ2LS 2023-03-22 23:03:31 +01:00
parent 179d5906b2
commit 2f64aa9279

View file

@ -1353,6 +1353,16 @@ update_chat = function (obj) {
document.getElementById("msg-" + obj._id).remove();
document.getElementById("msg-" + obj._id + "-control-area").remove();
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);
}
});
//scrollMessagesToBottom();
}