mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-05 19:28:46 +02:00
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>
|
||
|---|---|---|
| .. | ||
| Node | ||
| ChatContextMenus.swift | ||
| ChatListAdditionalCategoryItem.swift | ||
| ChatListContainerItemNode.swift | ||
| ChatListController.swift | ||
| ChatListControllerLeaveChatConfirmation.swift | ||
| ChatListControllerNode.swift | ||
| ChatListControllerStoryStealthMode.swift | ||
| ChatListEmptyNode.swift | ||
| ChatListFilterPresetCategoryItem.swift | ||
| ChatListFilterPresetController.swift | ||
| ChatListFilterPresetListController.swift | ||
| ChatListFilterPresetListItem.swift | ||
| ChatListFilterPresetListSuggestedItem.swift | ||
| ChatListFilterTagSectionHeaderItem.swift | ||
| ChatListRecentPeersListItem.swift | ||
| ChatListSearchContainerNode.swift | ||
| ChatListSearchListPaneNode.swift | ||
| ChatListSearchMediaNode.swift | ||
| ChatListSearchMessageSelectionPanelNode.swift | ||
| ChatListSearchPaneContainerNode.swift | ||
| ChatListSelection.swift | ||
| ChatListShimmerNode.swift | ||
| DateSuggestion.swift | ||
| ItemListFilterTitleInputItem.swift | ||
| TabBarChatListFilterController.swift | ||