Commit Graph
28 Commits
Author SHA1 Message Date
isaacandClaude Opus 4.8 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 c9e07daeda Temp 2026-03-24 00:26:50 +08:00
Isaac 1a17e97a7c Temp 2026-03-23 23:37:31 +08:00
Isaac 8d65fb3495 Monoforums 2025-05-27 23:37:35 +08:00
Ilya Laktyushin 8d7f9bf372 Various improvements 2025-02-22 19:17:36 +04:00
Ilya Laktyushin d2deea0ea2 Various fixes 2024-09-03 15:48:15 +04:00
Ilya Laktyushin f5092b8d8d Web app improvements 2024-07-02 21:03:22 +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 fe788ed9ea Message preview and effect improvements 2024-05-21 00:02:55 +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 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 16faaa4575 [WIP] Send message effects 2024-05-03 22:56:50 +04:00
Isaac e0c2800e8f [WIP] Message context menu 2024-04-30 23:40:55 +04:00
Ali eae866c77e [WIP] Quotes 2023-10-07 00:33:12 +04:00
Ali d892e030e0 Debugging 2023-09-25 19:47:44 +04:00
Ali 4330dc14d2 [WIP] Disposable debugging 2023-09-16 11:45:30 +02:00
Ilya Laktyushin ada47a4be5 Web app improvements 2023-09-08 15:52:11 +04:00
Ilya Laktyushin 656a0247fc Add Send When Online shortcut 2023-03-09 20:03:26 +04:00
Ilya Laktyushin fcadacbd15 Premium gifting in attach menu 2023-03-06 14:24:39 +04:00
Ali 554cd0e6fe Topic improvements + interval ads 2022-10-29 00:26:57 +04:00
Ilya Laktyushin b96430093c Various fixes 2022-07-24 22:57:22 +03:00
Ilya Laktyushin e1b4af1461 Various fixes 2022-07-22 17:46:09 +03:00
Ilya Laktyushin d811f5f160 Attachment menu improvements 2022-02-21 10:11:53 +03:00
Ilya Laktyushin 9994bb44ad Further attach menu refinements 2022-02-13 04:11:04 +03:00