Commit graph

15 commits

Author SHA1 Message Date
isaac
1d8931b334 Render markdown rich-text preview in send-message context screen
When the user long-presses Send in the main chat and the composed text passes the
same rich-markdown gate used at send time (richMarkdownAttributeIfNeeded), the
send-options preview bubble renders the message as rich InstantPage content,
crossfading from the raw text as the menu animates in. Plain text and custom chat
contents / edit previews are unchanged.

ChatSendMessageActionUI cannot depend on InstantPageUI (it closes a dependency
cycle via LocationUI -> AttachmentUI -> ... -> ChatTextInputActionButtonsNode), so
the rich view is built in TelegramUI (ChatSendMessageRichTextPreview, wrapping
InstantPageV2View + the outgoing message theme) and injected into the screen via a
new ChatSendMessageContextScreenRichTextPreview protocol, mirroring the existing
media-preview pattern. The main-chat send call site classifies the compose text
and injects the preview; MessageItemView lays it out within the send-button-bounded
bubble envelope and crossfades between the raw text and the rich layout.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-05-29 15:46:16 +02:00
Isaac
383ab9e479 Various improvements 2025-03-07 17:52:50 +01:00
Isaac
6807abf42c Various improvements 2024-06-24 18:19:53 +01:00
Isaac
9a075fa39e Refactoring 2024-06-12 23:04:04 +04:00
Isaac
6ccc9ed693 Remember message effect 2024-06-04 19:16:56 +04:00
Isaac
d6ebf1b4ff Edit message media preview 2024-05-26 20:42:43 +04:00
Isaac
667aa0349a [WIP] Edit message preview 2024-05-26 18:59:44 +04:00
Isaac
378b7e8ed5 Message preview improvements 2024-05-17 17:10:19 +04:00
Isaac
5edecdb686 [WIP] Message preview 2024-05-16 23:04:02 +04:00
Isaac
304ce900c1 Audio send message preview 2024-05-14 12:36:13 +04:00
Isaac
3da1b96775 [WIP] Video message send context menu 2024-05-13 23:37:30 +04:00
Isaac
8736981248 Message effects improvements 2024-05-13 20:14:15 +04:00
Isaac
7ef63a81df [WIP] Message effects 2024-05-10 20:57:12 +04:00
Isaac
0f12dceca7 Fix layout 2024-05-03 23:17:25 +04:00
Isaac
16faaa4575 [WIP] Send message effects 2024-05-03 22:56:50 +04:00