fix:不认识的用户构建关系

This commit is contained in:
SengokuCola
2025-08-12 16:57:08 +08:00
parent 527f297397
commit 918429605a
2 changed files with 3 additions and 0 deletions

View File

@@ -389,6 +389,8 @@ class RelationshipBuilder:
for person_id, segments in self.person_engaged_cache.items():
total_message_count = self._get_total_message_count(person_id)
person = Person(person_id=person_id)
if not person.is_known:
continue
person_name = person.person_name or person_id
if total_message_count >= max_build_threshold or (total_message_count >= 5 and (immediate_build == person_id or immediate_build == "all")):