mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Implement the nine message-entity RichText cases (textMention, textMentionName, textHashtag, textCashtag, textBotCommand, textBankCard, textAutoUrl, textAutoEmail, textAutoPhone): model + Postbox coding, FlatBuffers schema/codec, Api.RichText parsing/serialization (lossless), InstantPage display attaching the matching TelegramTextAttributes keys, and tap routing in the rich-data bubble mirroring ChatMessageTextBubbleContentNode. mentionName display resolves via EnginePeer.Id (PeerId not in scope). Also lets rich-data text selection reach a line's trailing edge and fixes the date/status node positioning to match TextBubble. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
35 lines
1.4 KiB
Text
35 lines
1.4 KiB
Text
load("@build_bazel_rules_swift//swift:swift.bzl", "swift_library")
|
|
|
|
swift_library(
|
|
name = "ChatMessageRichDataBubbleContentNode",
|
|
module_name = "ChatMessageRichDataBubbleContentNode",
|
|
srcs = glob([
|
|
"Sources/**/*.swift",
|
|
]),
|
|
copts = [
|
|
"-warnings-as-errors",
|
|
],
|
|
deps = [
|
|
"//submodules/AsyncDisplayKit",
|
|
"//submodules/Display",
|
|
"//submodules/TelegramCore",
|
|
"//submodules/SSignalKit/SwiftSignalKit",
|
|
"//submodules/AccountContext",
|
|
"//submodules/InstantPageUI",
|
|
"//submodules/TextFormat:TextFormat",
|
|
"//submodules/TelegramUI/Components/Chat/ChatMessageBubbleContentNode",
|
|
"//submodules/TelegramUI/Components/Chat/ChatMessageDateAndStatusNode",
|
|
"//submodules/TelegramUI/Components/Chat/ChatMessageItemCommon",
|
|
"//submodules/TelegramUI/Components/ChatControllerInteraction",
|
|
"//submodules/TelegramUI/Components/TextLoadingEffect",
|
|
"//submodules/TelegramUIPreferences",
|
|
"//submodules/TextSelectionNode",
|
|
"//submodules/TelegramUI/Components/ShimmeringMask:ShimmeringMask",
|
|
"//submodules/TelegramUI/Components/InteractiveTextComponent:InteractiveTextComponent",
|
|
"//submodules/TelegramUI/Components/StreamingTextReveal:StreamingTextReveal",
|
|
"//submodules/TelegramUI/Components/TextNodeWithEntities:TextNodeWithEntities",
|
|
],
|
|
visibility = [
|
|
"//visibility:public",
|
|
],
|
|
)
|