mirror of
https://github.com/tinyhumansai/openhuman.git
synced 2026-07-28 13:32:23 +00:00
Implements a sync service that loads all chats via GetDialogs in batched 100-chat requests, preloads messages for the top 20 chats with rate-limit pacing, and processes real-time Telegram updates through the existing UpdateManager's PTS/SEQ state machine. The service is triggered automatically by TelegramProvider when the connection is established and authenticated. New files: syncService, entityBuilders, updateHandler, schedulers (all under src/services/telegram/). Redux state extended with isSyncing, isSynced, users map, and batch chat reducers (replaceChats, addChats, setSyncStatus, etc.). Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>