feat: Substitute first_msg_index even if context is not chat

This commit is contained in:
Sunho Kim
2024-05-23 19:58:04 -07:00
parent 27ef7b8112
commit 8497ead17c

View File

@@ -536,11 +536,8 @@ const matcher = (p1:string,matcherArg:matcherArg) => {
return chatID.toString()
}
case 'first_msg_index':{
if(chatID !== -1){
const selchar = db.characters[get(selectedCharID)]
return selchar.firstMsgIndex
}
return null;
const selchar = db.characters[get(selectedCharID)]
return selchar.firstMsgIndex
}
case 'blank':
case 'none':{