mirror of
https://github.com/coalaura/whiskr.git
synced 2025-12-02 20:22:52 +00:00
fixes to retrying
This commit is contained in:
@@ -420,6 +420,8 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
abortNow();
|
||||||
|
|
||||||
this.stopEdit();
|
this.stopEdit();
|
||||||
|
|
||||||
while (messages.length > index) {
|
while (messages.length > index) {
|
||||||
@@ -1073,6 +1075,10 @@
|
|||||||
|
|
||||||
let chatController;
|
let chatController;
|
||||||
|
|
||||||
|
function abortNow() {
|
||||||
|
chatController?.abort();
|
||||||
|
}
|
||||||
|
|
||||||
function generate(cancel = false, noPush = false) {
|
function generate(cancel = false, noPush = false) {
|
||||||
if (chatController) {
|
if (chatController) {
|
||||||
chatController.abort();
|
chatController.abort();
|
||||||
@@ -1500,6 +1506,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function clearMessages() {
|
function clearMessages() {
|
||||||
|
abortNow();
|
||||||
|
|
||||||
while (messages.length) {
|
while (messages.length) {
|
||||||
messages[0].delete();
|
messages[0].delete();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user