fix(backend): person overview reads live in their own module, no import cycle with read receipts

This commit is contained in:
hh committed 2026-10-19 02:57:49 +00:00
1 parent 1abb396c36
commit 0dd14c5d5e
4 files changed
+202 -200

No files matched your search

+3 -2
View File
@@ -25,6 +25,7 @@ from utils.read import (
chats,
media,
peers,
people,
presence,
presence_stats,
social,
@@ -397,8 +398,8 @@ async def get_person(account_id: int, peer_id: int) -> dict[str, Any]:
of their deleted messages, and the private chat if there is one.
"""
pool = await _pool()
overview = await peers.get_overview(pool, account_id, peer_id)
groups = await peers.get_groups(pool, account_id, peer_id)
overview = await people.get_overview(pool, account_id, peer_id)
groups = await people.get_groups(pool, account_id, peer_id)
return {**overview.model_dump(mode="json"), **groups.model_dump(mode="json")}