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
History pages store no sender for incoming DMs and channel posts #44
Found while fixing #18. parseRawMessage (src/daemon/sync-worker-real-helpers.ts) sets from_id only from the raw message's fromId. Telegram leaves fromId out of an incoming message in a private chat and out of most channel posts, so history pages, tg messages list and get store from_id = NULL for them. Live messages store msg.sender.id, which mtcute fills from the chat. The same message gets a different sender depending on how it was cached, and a DM hit in tg messages search from history has sender.firstName: null.
Fix: when fromId is missing, take the sender from the chat for an incoming private message (the user) and for a channel post (the channel's marked ID), as mtcute does for live messages.
Done when a unit test shows the history row and the live row of the same incoming DM and channel post with the same from_id, and a history DM hit in tg messages search has the sender's name.
Activity
test: make the run-once check reach the sender fill guard
test: make the run-once check reach the sender fill guard
docs: add the changelog entries for the 0.4.0 bug fixes