When opening a group or channel with unread messages and leaving Telegram inactive until its Passcode Lock engages, unlocking Telegram causes the current position in the chat history to be lost. Telegram returns to the end of the chat and all previously unread messages are marked as read, even though they were not viewed.
This makes it difficult to continue reading from where the user left off, especially because a message cannot be marked as unread to preserve the reading position for later.
Steps to reproduce
Enable Passcode Lock in Settings → Privacy and Security → Passcode and set Auto-Lock to 1 minute.
Open any channel with one or more unread posts. The issue reproduces regardless of the number of unread posts.
Open a post and tap a link to read the full article. This opens the link in the in-app browser or an external browser.
Spend more than 1 minute reading the article, allowing Telegram's Passcode Lock to engage in the background.
Return to Telegram.
Unlock Telegram using either the passcode or biometric/fingerprint unlock.
Current result
Telegram opens the channel at the end of the chat history, and all previously unread posts are marked as read. The previous position in the chat and the unread message count are lost, even though the unread posts were not viewed.
Expected result
Telegram should preserve the user's position in the chat history and the existing unread message count after Telegram is unlocked, allowing the user to continue reading from where they left off.
P.S. I was referring to my own script, not the one linked in my ticket.
Steps to reproduce: Enable Passcode Lock in Telegram (Settings → Privacy and Security → Passcode) with Auto-Lock set to 1 minute Open any channel with one or more unread posts (reproduces regardless of unread count) Open a post and tap a link to read the full article (opens in in-app browser / external browser) Spend more than 1 minute reading the article — Telegram's own Passcode Lock engages in the background during this time Return to Telegram Unlock Telegram (reproduces both with passcode entry and with biometric/fingerprint unlock — method of unlocking doesn't matter) Expected behaviour: The channel should still show the same number of unread posts as before leaving to read the article, and opening the channel should land on the first unread message. Actual behaviour: The channel feed is scrolled all the way to the bottom and all previously unread posts are marked as read, even though none of them were actually viewed. Happens regardless of how many unread posts there were.
Steps to reproduce:
Enable Passcode Lock in Telegram (Settings → Privacy and Security → Passcode) with Auto-Lock set to 1 minute
Open any channel with one or more unread posts (reproduces regardless of unread count)
Open a post and tap a link to read the full article (opens in in-app browser / external browser)
Spend more than 1 minute reading the article — Telegram's own Passcode Lock engages in the background during this time
Return to Telegram
Unlock Telegram (reproduces both with passcode entry and with biometric/fingerprint unlock — method of unlocking doesn't matter)
Expected behaviour:
The channel should still show the same number of unread posts as before leaving to read the article, and opening the channel should land on the first unread message.
Actual behaviour:
The channel feed is scrolled all the way to the bottom and all previously unread posts are marked as read, even though none of them were actually viewed. Happens regardless of how many unread posts there were.