mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Update group-chats.js
After deleting a group chat, the oldest chat became active. I've fixed it so that the most recent chat becomes active instead.
This commit is contained in:
@@ -1622,7 +1622,7 @@ export async function deleteGroupChat(groupId, chatId) {
|
|||||||
|
|
||||||
if (response.ok) {
|
if (response.ok) {
|
||||||
if (group.chats.length) {
|
if (group.chats.length) {
|
||||||
await openGroupChat(groupId, group.chats[0]);
|
await openGroupChat(groupId, group.chats[group.chats.length-1]);
|
||||||
} else {
|
} else {
|
||||||
await createNewGroupChat(groupId);
|
await createNewGroupChat(groupId);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user