feat: Substitute first_msg_index even if context is not chat
This commit is contained in:
@@ -536,12 +536,9 @@ const matcher = (p1:string,matcherArg:matcherArg) => {
|
|||||||
return chatID.toString()
|
return chatID.toString()
|
||||||
}
|
}
|
||||||
case 'first_msg_index':{
|
case 'first_msg_index':{
|
||||||
if(chatID !== -1){
|
|
||||||
const selchar = db.characters[get(selectedCharID)]
|
const selchar = db.characters[get(selectedCharID)]
|
||||||
return selchar.firstMsgIndex
|
return selchar.firstMsgIndex
|
||||||
}
|
}
|
||||||
return null;
|
|
||||||
}
|
|
||||||
case 'blank':
|
case 'blank':
|
||||||
case 'none':{
|
case 'none':{
|
||||||
return ''
|
return ''
|
||||||
|
|||||||
Reference in New Issue
Block a user