Telegram-iOS/submodules/ChatListUI/Sources/Node
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
..
ChatListArchiveInfoItem.swift Various improvements 2026-05-28 16:50:05 +02:00
ChatListBadgeNode.swift Various improvements 2022-12-31 18:53:45 +04:00
ChatListEmptyHeaderItem.swift Glass 2025-12-26 20:29:30 +08:00
ChatListEmptyInfoItem.swift Glass 2025-12-26 20:29:30 +08:00
ChatListHoleItem.swift Glass 2025-12-26 20:29:30 +08:00
ChatListItem.swift Various improvements 2026-06-04 01:44:36 +02:00
ChatListItemStrings.swift Localize rich-text message preview labels; split audio into voice/music 2026-06-05 00:18:24 +02:00
ChatListNode.swift Merge commit 'c64653ed37' 2026-05-14 12:45:26 +02:00
ChatListNodeEntries.swift Postbox refactor waves 138–276: 168-commit squash 2026-05-05 00:44:27 +02:00
ChatListNodeLocation.swift Unseen polls 2026-03-27 18:30:01 +08:00
ChatListPresentationData.swift Support Dynamic Type 2019-11-19 23:28:36 +04:00
ChatListStatusNode.swift [WIP] Chat Import 2021-01-23 22:45:41 +04:00
ChatListTypingNode.swift [WIP] Topic APIs 2022-09-28 12:15:06 +02:00
ChatListViewTransition.swift Postbox refactor waves 138–276: 168-commit squash 2026-05-05 00:44:27 +02:00