#733 Reload selected chat instead of inserting the first one in array

This commit is contained in:
Cohee
2023-07-18 18:28:51 +03:00
parent 547b275768
commit 623675d940
2 changed files with 2 additions and 4 deletions

View File

@@ -15,7 +15,6 @@ import {
printCharacters,
name1,
name2,
replaceCurrentChat,
setCharacterId,
setEditedMessageId
} from "../script.js";
@@ -1177,7 +1176,7 @@ function doRandomChat() {
resetSelectedGroup();
setCharacterId(Math.floor(Math.random() * characters.length));
setTimeout(() => {
replaceCurrentChat();
reloadCurrentChat();
}, 1);
}