Skip to content

Show community section icons in the collapsed chat list - #31291

Open
meh7an wants to merge 1 commit into
telegramdesktop:devfrom
meh7an:fix/community-section-headers
Open

meh7an wants to merge 1 commit into
telegramdesktop:devfrom
meh7an:fix/community-section-headers

Conversation

@meh7an

@meh7an meh7an commented Sep 13, 2026

Copy link
Copy Markdown
Contributor

When a community is opened, the chat list groups its chats under the section headers "Chats you are in", "Chats you can view" and "Hidden chats". InnerWidget::paintEvent() always drew these headers as text, so in the collapsed chat list, which is narrowed down to userpics, the titles were cut off.

In the collapsed list, each header bar now shows a centered icon instead of its title. The icons are existing resources, drawn in the header text color:

  • Chats you are in: folders/folder_existing_chats, the Existing chats icon from folder settings.
  • Chats you can view: poll/filled/filled_poll_view, an eye.
  • Hidden chats: community/requests_hidden, the crossed-out eye already used as the badge on the userpics of hidden chats.

The expanded list still shows the titles.

Testing

Built and tested on macOS (Debug), with a community opened:

  • The collapsed chat list shows the section icons in place of the cut titles.
  • The expanded chat list shows the titles as before.

Screenshot

image image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant