mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
stop transmission if deleted message is still in progress
This commit is contained in:
parent
179d5906b2
commit
2f64aa9279
1 changed files with 10 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue