mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-17 05:47:11 +00:00
fix: 结束对话计算错误
This commit is contained in:
parent
2fad551144
commit
8d12cb7466
1 changed files with 1 additions and 1 deletions
|
|
@ -90,7 +90,7 @@ export class ChatGPTManagement extends plugin {
|
||||||
const userStates = await Chaite.getInstance().getUserStateStorage().listItems()
|
const userStates = await Chaite.getInstance().getUserStateStorage().listItems()
|
||||||
let num = 0
|
let num = 0
|
||||||
for (const userState of userStates) {
|
for (const userState of userStates) {
|
||||||
if (userState.current.conversationId) {
|
if (userState.current.conversationId && userState.current.messageId) {
|
||||||
num++
|
num++
|
||||||
}
|
}
|
||||||
userState.current.conversationId = ''
|
userState.current.conversationId = ''
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue