feat: add sortings

This commit is contained in:
kwaroran
2024-06-06 19:29:38 +09:00
parent c5fb83e557
commit 57e50ca9b3
6 changed files with 72 additions and 22 deletions

View File

@@ -232,7 +232,7 @@ export async function importChat(){
return
}
db.characters[selectedID].chats.push(newChat)
db.characters[selectedID].chats.unshift(newChat)
setDatabase(db)
alertNormal(language.successImport)
}
@@ -241,7 +241,7 @@ export async function importChat(){
if(json.type === 'risuChat' && json.ver === 1){
const das:Chat = json.data
if(!(checkNullish(das.message) || checkNullish(das.note) || checkNullish(das.name) || checkNullish(das.localLore))){
db.characters[selectedID].chats.push(das)
db.characters[selectedID].chats.unshift(das)
setDatabase(db)
alertNormal(language.successImport)
return