All contributions

telegramdesktop/tdesktop

Telegram Desktop

The official desktop client of the Telegram messenger, written in C++ on the Telegram API and the MTProto protocol.

Language
C++
GitHub stars
33,661
Merged changes
2
Project site
desktop.telegram.org

What we changed

The owner of a broadcast group (gigagroup) no longer sees a topics toggle that failed with CHAT_GIGAGROUP_UNALLOWED. The media viewer responds to keys even when its main widget has no focus.

What this work shows

  • C++ and Qt user interfaces
  • Qt event filters and focus
  • Chat types in the Telegram API
What was broken

The topics toggle failed

Broadcast groups (gigagroups) also carry the megagroup flag, so their owner saw the topics toggle in the group settings. Switching it on failed with the server error CHAT_GIGAGROUP_UNALLOWED.

How we fixed it

The toggle only in regular supergroups

The canEditForum condition in edit_peer_info_box.cpp now rules out gigagroups explicitly with isGigagroup(). Only the creator of a regular supergroup sees the topics toggle.

#31450

What was broken

The media viewer ignored keys

Key presses were only handled in the event filter of the _body widget. When that widget had no focus, for example after the window was restored, the media viewer ignored every key.

How we fixed it

The window filter handles keys

KeyPress and KeyRelease handling moved to the event filter of the whole window in OverlayWidget, so keys work regardless of which widget has focus.

#31527

Merged changes 2

  1. #31527 Fixed media viewer keys lost when its body has no focus. Merged 26 October 2026
  2. #31450 Hide the topics toggle in broadcast group settings Merged 14 October 2026

What it taught us

In a large C++ application on Qt we can find the one place that decides how the interface behaves: an option's visibility condition that matches what the server accepts, and an event filter that receives keys regardless of focus.

Other projects we write code for

Describe your project.

A free quote comes back within an hour during working hours.