Telegram-iOS/Telegram
isaac 35711ec6ad Localize rich-text message preview labels; split audio into voice/music
Thread PresentationStrings through RichText/InstantPageBlock/InstantPage
previewText(), replacing the hardcoded //TODO:localize placeholders
("Photo", "Fx", "Table", "Map", ...) with localized keys and reusing the
existing Message.Photo/Video/Location strings. Add RichTextPreview.Formula
("[formula]"), RichTextPreview.Table ("[table]"), and RichTextPreview.Music
("Music").

The .audio block previously rendered the wrong label (Message.Audio is
"Voice Message"). Thread InstantPage.media down so the block can resolve
media[id] as TelegramMediaFile and split: isVoice -> "Voice Message",
otherwise -> "Music", mirroring MessageContentKind's voice/music handling.

Update both previewText() call sites (MessageContentKind, ChatListItemStrings)
to pass strings, and complete the InstantPageListItem migration that was
left on the old signature.

Also remove the dead streaming-status ("Thinking...") rendering block from
ChatMessageTextBubbleContentNode (guarded by an always-false `!"".isEmpty`)
along with the now-orphaned streamingTextFrame layout machinery it fed.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-05 00:18:24 +02:00
..
BroadcastUpload Postbox refactor waves 138–276: 168-commit squash 2026-05-05 00:44:27 +02:00
NotificationContent Fix initconneciton push 2024-05-27 20:03:25 +04:00
NotificationService Various fixes 2026-05-27 19:05:44 +02:00
Share Postbox refactor waves 138–276: 168-commit squash 2026-05-05 00:44:27 +02:00
SiriIntents Various improvements 2026-03-31 20:24:24 +08:00
Telegram-iOS Localize rich-text message preview labels; split audio into voice/music 2026-06-05 00:18:24 +02:00
Tests/Sources Temp 2026-04-07 08:11:27 +02:00
Watch Watch: add some int64 support 2022-01-18 20:26:30 +04:00
WatchApp Re-apply dynamic watch bundle id 2026-06-01 18:07:34 +02:00
WidgetKitWidget [WIP] Monoforums 2025-05-08 20:56:55 +01:00
BUILD Re-apply dynamic watch bundle id 2026-06-01 18:07:34 +02:00
PatchMinOSVersion.source.sh Experimental min OS version patching 2021-02-17 23:43:48 +04:00
prebuilt_watchos.bzl Re-apply dynamic watch bundle id 2026-06-01 18:07:34 +02:00
prebuilt_watchos_build.sh Re-apply dynamic watch bundle id 2026-06-01 18:07:34 +02:00