You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Messages and chats are cached with different peer ID formats #18
messages_cache stores marked peer IDs (-100… for channels and supergroups, negative for basic groups), but chats_cache stores raw positive IDs. On a real account, 108 of the 110 chats that had cached messages had no matching chats_cache row.
Effects:
every tg messages search result for a group or channel has chat.title, chat.username and chat.type set to null;
--chat filters and SQL joins between the two tables miss groups and channels.
Fix: pick one format (marked IDs, as mtcute uses) for every cache table, migrate existing rows, and route all ID conversions through src/utils/telegram-peer-ids.ts.
Done when messages search returns the chat title for supergroup messages in an e2e test, and a migration test covers the old format.
Activity
test: catch bare group and channel IDs outside chats_cache
test(integration): check that live dialogs land under marked IDs
docs: mark the marked sender and forward IDs as a breaking change
fix(send): take a positive ID with DM sync state as that user
test: catch bare group and channel IDs outside chats_cache
test(integration): check that live dialogs land under marked IDs
docs: mark the marked sender and forward IDs as a breaking change
fix(send): take a positive ID with DM sync state as that user
fix(status): say when the running daemon is another version