select last chat after delete
This commit is contained in:
@@ -164,7 +164,8 @@ export function App() {
|
||||
}
|
||||
|
||||
// find nex selected chat index
|
||||
const next = newAllChatStoreIndexes[0];
|
||||
const next =
|
||||
newAllChatStoreIndexes[newAllChatStoreIndexes.length - 1];
|
||||
console.log("next is", next);
|
||||
setSelectedChatIndex(next);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user