pull/1001/head
SnowindMe 2025-05-13 00:58:32 +08:00
commit 67cce8c02b
2 changed files with 3 additions and 1 deletions

View File

@ -250,7 +250,7 @@ class SubHeartflow:
elif new_state == ChatState.ABSENT:
logger.info(f"{log_prefix} 进入 ABSENT 状态,停止所有聊天活动...")
await self.clear_interest_dict()
self.clear_interest_dict()
await self._stop_normal_chat()
await self._stop_heart_fc_chat()

View File

@ -352,6 +352,8 @@ class NormalChat:
# --- 新增:处理初始高兴趣消息的私有方法 ---
async def _process_initial_interest_messages(self):
"""处理启动时存在于 interest_dict 中的高兴趣消息。"""
if not self.interest_dict:
return # 如果 interest_dict 为 None或空直接返回
items_to_process = list(self.interest_dict.items())
if not items_to_process:
return # 没有初始消息,直接返回