telegramdesktop / tdesktop

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

Deleted channel accessible through My Channels until restart #27966

Open aNNiMON opened 5 months ago

aNNiMON commented 5 months ago

Steps to reproduce

  1. Create a channel
  2. Manage channel -> Delete channel -> Confirm
  3. Menu -> Right click on New Channel -> My Channels
  4. Inspect the channels list

Expected behaviour

Deleted channel shouldn't appear in the list

Actual behaviour

Deleted channel appears at the bottom of the list. It's partially accessible: user can see the messages, but cannot join the channel. After the restart it disappears from the list.

https://github.com/telegramdesktop/tdesktop/assets/1321838/9928e0b2-e668-42a5-aba2-6cd68a4fbd68

image

https://github.com/telegramdesktop/tdesktop/assets/1321838/ae2c5ded-af89-40f3-9d46-39ba9d7690ae

Operating system

Windows 11

Version of Telegram Desktop

5.0.2

Installation source

Static binary from official website

taha-ghadirian commented 5 months ago

I can reproduce this issue on Linux too.

However, the list will be updated after reloading telegram. For example by right clicking on try icon => exit, Or by presing Ctrl+Q completely close telegram, then you can re open it.

Also, the channel is actually deleted on the server side, that issue is just because of client side cache.

aNNiMON commented 5 months ago

@taha-ghadirian that's what I meant by restart 😄

the channel is actually deleted

Who knows, I'd say it's only marked as deleted. 🤷‍♂️