overtake / TelegramSwift

Source code of Telegram for macos on Swift 5.0
https://macos.telegram.org
GNU General Public License v2.0
4.9k stars 815 forks source link

Extra messages are marked as read (in channels, maybe in groups too) #1092

Open Makc0809 opened 3 months ago

Makc0809 commented 3 months ago

Steps to reproduce

1) Open a channel with e.g. 50 unread messages 2) Scroll down a few messages (e.g. 1-3) 3) Close the channel 4) Open the same channel and make sure that the previous post/message was not the one you closed on, but one post away from it.

Sometimes the next post(s) are marked read after 1-2 seconds.

Expected behaviour

If I opened a channel and read 2 posts (out of 50 unread), the counter will have a mark of 48 unread posts. And it will open from the last unread one

Actual behaviour

The feed opens 1-2 posts below the one you had open the previous time.

Operating system

MacOS 14.2.1 (23C71)

Version of Telegram Desktop

10.9.1.260779

Installation source

Mac App Store

Crash ID

No response

Logs

No response