mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-09 08:38:53 +01: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:
parent
9e5505a7d4
commit
670f08fad2
@ -1622,7 +1622,7 @@ export async function deleteGroupChat(groupId, chatId) {
|
||||
|
||||
if (response.ok) {
|
||||
if (group.chats.length) {
|
||||
await openGroupChat(groupId, group.chats[0]);
|
||||
await openGroupChat(groupId, group.chats[group.chats.length-1]);
|
||||
} else {
|
||||
await createNewGroupChat(groupId);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user