UnigramDev/Unigram/develop • 9b8ba30 • 1 files, +7/-1
Don't animate a deferred template part from SettingsButton's Disabled state (#3336)
* Defer DescriptionPresenter with Lazy instead of dropping the deferral
x:DeferLoadStrategy="Lazy" realizes the element when something references it,
including a visual state, so the Disabled storyboard resolves without the part
being materialized up front. x:Load does not, which is what made the target
unresolvable. The stock TextBox template deferrs HeaderContentPresenter the same
way for the same reason.
Keeps the deferral the previous commit had given up, and the disabled appearance
is still what it was before this branch.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
UnigramDev/Unigram/develop • a04d5d4 • 1 files, +7/-0
Handle an instant view table with no rows (#3335)
* Handle an instant view table with no rows
ProcessTable computed its column count with table.Cells.Max(...), which throws
InvalidOperationException: Sequence contains no elements when the table has no
rows at all. It reached OnApplyTemplate through InstantContent.UpdateView, so
the whole message failed to render. Reported by crash telemetry on 12.9.1.
There is no grid to build for an empty table, so render just the caption --
which is what the method already falls back to, and callers of ProcessBlock all
handle a null return.
Not built: no UWP/.NET Native build environment here. Verified the file still
parses with Roslyn.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
#unigram
UnigramDev/Unigram/develop • 9b8ba30 • 1 files, +7/-1 Don't animate a deferred template part from Se
Telegram github commits and releases
@tgappsupdatesBroadcast from the most important Telegram clients' repositories
4,538 مشتركًا
فتح في تيليجرام