telegramdesktop / tdesktop

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

Search widget randomly steals focus #28052

Closed reallyuniquename closed 4 months ago

reallyuniquename commented 4 months ago

Steps to reproduce

  1. Open a group chat by following a t.me link or using ︙ → View Discussion. You must not be a member of that group.

  2. Click on any picture or a video.

  3. Click again to close a media viewer.

Another case.

  1. Open a group chat by following a t.me link or using ︙ → View Discussion. You must not be a member of that group.

  2. Minimize Telegram app.

  3. Maximize Telegram app.

Expected behaviour

Nothing should happen.

Actual behaviour

Search field takes focus and search widget is opened.

Operating system

Windows 10

Version of Telegram Desktop

5.1.7

Installation source

Static binary from official website

Crash ID

No response

Logs

If I close search widget with an X it stops taking focus until I visit the group again.

I can't always reproduce this but I do encounter this quite often. That's been an issue for a while now.

john-preston commented 4 months ago

@reallyuniquename Thanks! I can reproduce both.

reallyuniquename commented 4 months ago

While this is mostly fixed there is still like 20% chance for the search widget to popup when you open and close a video in a group you are not a member of.

reallyuniquename commented 4 months ago

If you switch to some other app using taskbar and then go back to Telegram it also might trigger this bug.

Again this is very inconsistent.