TGViewer
Telegram github commits and releases Telegram github commits and releases @tgappsupdates · 4.52K subscribers
Post #20544 108
UnigramDev/Unigram/settingsexpander-collapse-guard • ecf9d06 • 1 files, +3/-1
Fix the expander never collapsing its content

The scoped batch's Completed handler compares _tracker against a value captured
with a post-increment, so the comparison was (n + 1) == n and never held. The
handler is what applies Visibility.Collapsed after the collapse animation, and
PopupRoot.Visibility is set to Visible unconditionally just above it, so
collapsed content stayed visible and kept participating in layout — hidden only
by PopupHost.Height = 0 and the negative margin.

Pre-increment gives the guard its intended meaning: apply the final visibility
unless a newer toggle has started since this batch began.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

#unigram
More from @tgappsupdates
  1. Oct 15, 2026TGX-Android/Telegram-X/main • b960f4c • 1 files, +3/-2 Fix displaying call notification in…
  2. Oct 15, 2026TGX-Android/Telegram-X/main • d9d5897 • 1 files, +3/-2 Fix displaying call notifiaction in…
  3. Oct 15, 2026telegramdesktop/tdesktop/dev • 75c0e28 • 2 files, +77/-185 Share the rich editor inline-fi…
  4. Oct 15, 2026telegramdesktop/tdesktop/dev • 5d5900c • 6 files, +1105/-17 [ai] Add a queued-start harnes…
  5. Oct 15, 2026TGX-Android/Telegram-X/main • a6c184f • 6 files, +29/-2 Windows Compile Fixes (#1107) #tgx…
  6. Oct 14, 2026morethanwords/tweb/master • c120515 • 6 files, +22/-0 Composer: an Article item in the att…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →