Telegram-iOS/submodules/BrowserUI/Sources
isaac 3ed8c926a8 Custom emoji in markdown rich messages (send + round-trip)
Parse custom emoji into RichText.textCustomEmoji when sending markdown
rich messages, and round-trip them through edit, copy, and paste using a
shared tg://emoji?id=<fileId> markdown-link marker.

- Send: rewrite each customEmoji input attribute into a
  [<alt>](tg://emoji?id=<fileId>) marker before the CommonMark parse, then
  intercept the marker URL afterward to emit .textCustomEmoji. Only rich
  messages are affected; a custom emoji alone stays on the entity path.
- Reverse: InstantPageToMarkdown (whole-message copy + edit reconstruction)
  and InstantPageMultiTextAdapter (selection copy) emit the marker;
  edit-load and chat paste reattach it as a live customEmoji attribute.
- Marker helpers shared in TextFormat/CustomEmojiMarkdownMarker.swift.
- Rich sends now pass inlineStickers so recipients can fetch the files.

Follow-up to verify at runtime: recipient rendering goes out with
Api.InputRichMessage.documents: nil; if recipients see only the fallback
glyph, populate documents: in apiInputRichMessage().

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-05-31 17:51:37 +02:00
..
BrowserAddressBarComponent.swift Glass 2026-01-25 00:31:18 +08:00
BrowserAddressListComponent.swift Postbox refactor waves 138–276: 168-commit squash 2026-05-05 00:44:27 +02:00
BrowserAddressListItemComponent.swift Postbox refactor waves 138–276: 168-commit squash 2026-05-05 00:44:27 +02:00
BrowserBookmarksScreen.swift Various improvements 2026-05-28 16:50:05 +02:00
BrowserContent.swift Local instant view 2024-08-29 11:44:05 +04:00
BrowserDocumentContent.swift Postbox refactor waves 138–276: 168-commit squash 2026-05-05 00:44:27 +02:00
BrowserExceptionDomainAlertContentNode.swift Postbox -> TelegramEngine wave 6: unused import Postbox batch sweep 2026-04-19 23:46:13 +02:00
BrowserFontSizeContextMenuItem.swift Initial in-app browser implementation 2023-02-18 00:59:18 +04:00
BrowserInstantPageContent.swift Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios 2026-05-29 09:24:16 +02:00
BrowserMarkdown.swift Custom emoji in markdown rich messages (send + round-trip) 2026-05-31 17:51:37 +02:00
BrowserNavigationBarComponent.swift Various improvements 2026-02-19 21:53:26 +04:00
BrowserPdfContent.swift Postbox refactor waves 138–276: 168-commit squash 2026-05-05 00:44:27 +02:00
BrowserReadability.swift Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios 2026-05-29 10:01:53 +02:00
BrowserRecentlyVisited.swift Postbox refactor waves 138–276: 168-commit squash 2026-05-05 00:44:27 +02:00
BrowserScreen.swift Merge commit 'c64653ed37' 2026-05-14 12:45:26 +02:00
BrowserSearchBarComponent.swift Various improvements 2025-12-29 10:05:51 +04:00
BrowserTitleBarComponent.swift Glass 2026-01-25 00:31:18 +08:00
BrowserToolbarComponent.swift Various improvements 2026-04-22 23:03:51 +02:00
BrowserWebContent.swift Postbox refactor waves 138–276: 168-commit squash 2026-05-05 00:44:27 +02:00
InstantPageToMarkdown.swift Custom emoji in markdown rich messages (send + round-trip) 2026-05-31 17:51:37 +02:00
SectionHeaderComponent.swift Browser improvements 2024-07-25 17:04:44 +02:00
Utils.swift Postbox refactor waves 138–276: 168-commit squash 2026-05-05 00:44:27 +02:00