UnigramDev/Unigram/temp • 9b6feb4 • 1 files, +3/-39
Reuse UpdateMessageTopic from UpdateContent
The MessageHeaderMessageTopic branch was a verbatim copy of it.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
UnigramDev/Unigram/temp • 8282849 • 2 files, +23/-0
Recycle service message containers
Only MessageSelector was recycled, so a service message leaving the viewport
went back on the queue still holding its view model and its text inlines.
Also gives the per-content subclasses a place to reset the state they set,
which the shared templates need.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
UnigramDev/Unigram/temp • 3bd2fe4 • 1 files, +16/-0
Fix stale publisher chip on recycled gift messages
MessageGift, MessageGiftedPremium, MessageGiftedStars and MessagePremiumGiftCode
share one template, but only the first one touches the publisher border, so a
recycled container kept showing the previous message's publisher.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
UnigramDev/Unigram/temp • 551580a • 1 files, +7/-9
Start a selection only on a direct hit
ResolvePosition resolves a point to the nearest selectable, clamping when the
pointer is past the end of a line, below the last block or beside a cell. A drag
needs that clamp, but a press was taking it too: pressing on media resolved to a
neighbouring caption, and the capture that follows moved the whole pointer
sequence to the selection root. Nothing else saw it, so a drag out of
PhotoContent never began.
The press now requires ResolvePosition to report a direct hit. Drags still clamp,
so extending a selection past the end of a line is unchanged.
The multi-tap branch tested the same flag to keep gap presses out of the tap
sequence, which the anchor now guarantees.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
UnigramDev/Unigram/temp • 34ab631 • 1 files, +24/-6
Fix null dereferences in service message text
- a gift purchase offer in a chat that isn't a user
- a stopped poll event whose message isn't a poll
- a refunded suggested post whose replied-to message has no post info
- an empty task list on a checklist update
All of them dereferenced without checking; they now fall back to no text.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
UnigramDev/Unigram/temp • ab2e714 • 1 files, +18/-13
Guard the entity offset in the suggested photo action
The bold entity was placed at the index of {0} in the format string, with no
check: a translation without the placeholder gave a negative offset.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
#unigram
UnigramDev/Unigram/temp • 9b6feb4 • 1 files, +3/-39 Reuse UpdateMessageTopic from UpdateContent The
Telegram github commits and releases
@tgappsupdatesBroadcast from the most important Telegram clients' repositories
4,538 مشتركًا
فتح في تيليجرام