Commit f252c42
feat(composer): localized rich-text editor placeholders + AI button/expand gating
Thread PresentationStrings into RichTextEditorChatInputNode so the composer editor's placeholders come from the new RichText.Placeholder{Quote,Code} strings. Gate the AI button on non-whitespace input content and the expand-input button on isAIEnabled, in the same input panel.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent f932bb2 commit f252c42
3 files changed
Lines changed: 25 additions & 5 deletions
File tree
- Telegram/Telegram-iOS/en.lproj
- submodules/TelegramUI/Components/Chat
- ChatRichTextEditorComposer/Sources
- ChatTextInputPanelNode/Sources
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16565 | 16565 | | |
16566 | 16566 | | |
16567 | 16567 | | |
| 16568 | + | |
| 16569 | + | |
| 16570 | + | |
16568 | 16571 | | |
16569 | 16572 | | |
16570 | 16573 | | |
| |||
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| 41 | + | |
| 42 | + | |
40 | 43 | | |
41 | 44 | | |
42 | 45 | | |
| |||
103 | 106 | | |
104 | 107 | | |
105 | 108 | | |
106 | | - | |
| 109 | + | |
107 | 110 | | |
108 | 111 | | |
109 | 112 | | |
110 | 113 | | |
| 114 | + | |
| 115 | + | |
111 | 116 | | |
112 | 117 | | |
113 | 118 | | |
| |||
142 | 147 | | |
143 | 148 | | |
144 | 149 | | |
145 | | - | |
| 150 | + | |
| 151 | + | |
146 | 152 | | |
147 | 153 | | |
148 | 154 | | |
| |||
Lines changed: 14 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
| 310 | + | |
310 | 311 | | |
311 | 312 | | |
312 | 313 | | |
| |||
1189 | 1190 | | |
1190 | 1191 | | |
1191 | 1192 | | |
1192 | | - | |
| 1193 | + | |
1193 | 1194 | | |
1194 | 1195 | | |
1195 | 1196 | | |
| |||
1617 | 1618 | | |
1618 | 1619 | | |
1619 | 1620 | | |
| 1621 | + | |
| 1622 | + | |
| 1623 | + | |
1620 | 1624 | | |
1621 | 1625 | | |
1622 | 1626 | | |
| |||
1638 | 1642 | | |
1639 | 1643 | | |
1640 | 1644 | | |
| 1645 | + | |
| 1646 | + | |
| 1647 | + | |
| 1648 | + | |
| 1649 | + | |
1641 | 1650 | | |
1642 | 1651 | | |
1643 | 1652 | | |
| |||
3538 | 3547 | | |
3539 | 3548 | | |
3540 | 3549 | | |
3541 | | - | |
| 3550 | + | |
| 3551 | + | |
3542 | 3552 | | |
3543 | 3553 | | |
3544 | 3554 | | |
| |||
3823 | 3833 | | |
3824 | 3834 | | |
3825 | 3835 | | |
3826 | | - | |
| 3836 | + | |
3827 | 3837 | | |
3828 | 3838 | | |
3829 | 3839 | | |
| |||
4779 | 4789 | | |
4780 | 4790 | | |
4781 | 4791 | | |
| 4792 | + | |
4782 | 4793 | | |
4783 | 4794 | | |
4784 | 4795 | | |
| |||
0 commit comments