telegramdesktop / tdesktop

Telegram Desktop messaging app
https://desktop.telegram.org/
Other
26.34k stars 5.23k forks source link

Bot chat history scrolling position is not preserved #28085

Open reallyuniquename opened 4 months ago

reallyuniquename commented 4 months ago

Steps to reproduce

  1. Open chat with any bot.
  2. Make sure there is enough history for scrolling.
  3. Post this text in the bot. There is no need for any reply.
    Click to expand
1   https://t.me/telegram
2   https://t.me/telegram
3   https://t.me/telegram
4   https://t.me/telegram
5   https://t.me/telegram
6   https://t.me/telegram
7   https://t.me/telegram
8   https://t.me/telegram
9   https://t.me/telegram
10 https://t.me/telegram
11 https://t.me/telegram
12 https://t.me/telegram
13 https://t.me/telegram
14 https://t.me/telegram
15 https://t.me/telegram

  1. Scroll chat history so that link #1 is the only one visible in the viewport.

  2. Click link #1 and navigate to a channel.

  3. Press ESC or click ← to navigate back to the bot.

Expected behaviour

Scroll position is unchanged. Link #1 is the only one visible in the viewport.

Actual behaviour

Scroll position is different. Links from #1 to #5 are all visible in the viewport.

Operating system

Windows 10

Version of Telegram Desktop

5.1.7

Installation source

Static binary from official website

Crash ID

No response

Logs

No response

reallyuniquename commented 4 months ago

@john-preston Do you mind taking a look at this? Basically every time you click a t.me/channel link in a bot chat and then go back scroll position goes five lines down for some reason.

reallyuniquename commented 1 month ago

Still an issue. Everytime I click a t.me link and then go back my bot chat scrolls half a screen down. I'd really like @john-preston to take a look at this.