Commit Graph

1206 Commits

Author SHA1 Message Date
23rd
cb72fa6dc6 Replaced saved messages section flag with info key subject.
Related commit: db5f6a258e.
2026-08-22 21:02:04 +03:00
John Preston
d5a8343c27 Keep a bot start token when leaving over a section. 2026-08-18 11:17:58 +04:00
John Preston
7561f72d84 Fall back to the legacy chat when a section skips an action. 2026-08-18 11:17:58 +04:00
John Preston
eeadf8c02a Skip painting the modern chat under covering compose panels 2026-08-18 11:17:57 +04:00
John Preston
bb78c15e88 [chat] Fix bots and attach compose parity in modern view. 2026-08-18 11:17:57 +04:00
John Preston
93dfa63097 [chat] Fix parity gaps found by legacy chat view audit. 2026-08-18 11:17:57 +04:00
John Preston
aaf833e3ec [chat] Fix migrated chat view bugs and pre-existing-mode regressions.
Parity fixes for the new Mode::History path, plus regression fixes for
the pre-existing Replies/Sublist/topic flows and the shared list/compose
widgets, found via a feature-by-feature comparison against the legacy
HistoryWidget/HistoryInner.

Crashes:
- Bot start deep links (ShowAndStartBotMsgId/ShowAndMaybeStartBotMsgId)
  no longer feed a special id into the sparse-ids viewer; /start is sent
  and inlineReturnTo is preserved.
- Touch long-press over empty space with an active selection no longer
  dereferences a null view in the translate-selected menu branch.
- AboutView element use-after-free when the card is replaced/destroyed.
- HistoryMessagesViewer no longer asserts on unresolved slice ids
  (chat preview hardened).

History-mode parity:
- Typing/recording send actions, incoming/outgoing cloud drafts, manual
  mark-as-unread clearing on open, channel-unavailable close.
- Force-reply dismissal after sending; bot keyboards no longer
  resurrected by slice rescans; single-use re-show persists; keyboard
  height parity; keyboard hidden while in-chat search is open.
- Unread mentions/reactions/poll-votes corner buttons; reply-return
  stack; jump-to-date calendar; AboutView hit-testing + intro sticker
  send; empty-group card.
- Quick Replies and moderate-mode hotkeys autocomplete; interactive
  emoji; view-once (TTL) voice button; per-post Statistics and
  paid-reaction context items; topic-creating bots; inline-bot slowmode
  checks; edit-time countdown.
- Navigation stack clear/dedup, embedded-search recursion guard,
  choose-to-report on the legacy path, active-chat re-click jump,
  show-at-end positioning, unread-count undercounting, uncached-jump
  blanking.

Regressions in pre-existing flows:
- Comments: unread jump on re-open, unread bar, and stray group-call/
  requests/contact-status bars no longer leak into threads.
- Topics: no extra reply cancel on normal sends.
- Replies: bot command via section override threads into the comment.
- In-place migration re-subscribes the pinned tracker.

Performance:
- Killed a self-perpetuating 14s draft-write loop.
- Restored updateBotKeyboard's unchanged-state early-out.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-08-18 11:17:57 +04:00
John Preston
39f3ae7c6b [chat] Fix some bugs in modern chat view. 2026-08-18 11:17:57 +04:00
John Preston
ea298dd594 [chat] Port remaining parts of legacy chat view. 2026-08-18 11:17:57 +04:00
John Preston
438fcd0fc6 [chat] Migrate theme choose support. 2026-08-18 11:17:56 +04:00
John Preston
d6b543c004 [chat] Migrate bot keyboard and force-reply. 2026-08-18 11:17:56 +04:00
John Preston
3642f2ccd5 [chat] Migrate choose-to-report flow. 2026-08-18 11:17:56 +04:00
John Preston
2b50f5aabb [chat] Add an option to open chats in ChatWidget. 2026-08-18 11:17:56 +04:00
23rd
8733e00604 Added restoring of opened windows and chat stacks on relaunch. 2026-08-11 16:50:36 +03:00
John Preston
cd8f3b8e8b Slide to the next unread forum topic from bottom
Task: 2026/07/29/animate-pull-to-next-forum-topic
2026-08-04 13:08:47 +04:00
23rd
1b35a691b2 Fixed crash on search in community with forced embedded search. 2026-07-27 14:04:37 +03:00
John Preston
f5c56ddfbe Add three-dot menu with Search to archive top bar 2026-07-10 14:04:31 +04:00
23rd
a2f2db30f6 Made discussion group open in same non-primary window as its channel. 2026-06-24 09:04:54 +03:00
23rd
75491857bf Added bottom-up section slide for swipe-next-channel jump. 2026-06-22 11:51:49 +03:00
23rd
c56fd4552f Fixed repaint region for third column section animation. 2026-06-22 11:51:49 +03:00
23rd
66faf6c612 Allowed stepping back inside info sections with mouse back button. 2026-06-10 19:32:27 +03:00
23rd
d7316816a2 Allowed closing boxes and layers with mouse back button. 2026-06-10 19:32:08 +03:00
23rd
e29458e8aa Added dragging proxy links onto window to open connection box. 2026-06-09 07:49:25 +03:00
23rd
1f6474a178 Fixed crash on in-chat search opened from separated archive windows. 2026-05-18 07:57:52 +03:00
John Preston
b40397700d Fix tg:// links handling on cold start. 2026-05-05 10:45:43 +04:00
John Preston
b7a20e1878 Send sticker from set box to correct place. 2026-05-01 00:15:18 +07:00
23rd
52615a3ccb Added support of draw-to-reply from shared media. 2026-04-14 09:16:15 +03:00
23rd
319a914b66 Fixed closing forum by Escape instead of navigating back from stack. 2026-03-31 07:30:54 +03:00
John Preston
4c2d72d00b Support no-topics recipient state in bot-forums. 2026-02-28 19:07:09 +04:00
John Preston
9316cec95d Rewrite settings_premium to new builder pattern
- Move settings_premium.h/cpp from settings/ to settings/sections/
- Add BuildHelper with kMeta for search indexing
- Index premium features and subscribe button for search
- Keep complex Premium section UI (custom top bar, feature list) as non-indexed
- Update all include paths across the codebase

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-28 11:55:20 +04:00
John Preston
a86529c22c Support nice search activation without query. 2026-01-28 11:55:18 +04:00
23rd
7c675a378c Added experimental option to force embedded search in chat. 2026-01-28 08:57:57 +03:00
23rd
4f96812b90 Added ability to have duplicates in stack of sections. 2026-01-08 07:18:46 +03:00
23rd
9f36721631 Added workaround to avoid corner glitches on media player panel. 2026-01-01 16:18:43 +03:00
John Preston
a103047e03 Attempt to fix topic draft saving. 2025-12-22 17:56:55 +04:00
John Preston
08a979e638 Use more simple tr::... text helpers. 2025-12-15 21:40:54 +04:00
23rd
eca8dfb0ec Renamed rpl::start_with_ with rpl::on_. 2025-12-10 21:28:33 +03:00
John Preston
41d206e354 Rename SuggestPostOptions to SuggestOptions. 2025-12-05 20:11:53 +04:00
Ilya Fedin
5fbf280e4a Combine startUrls and sendPaths
This commit allows to handle multiple URLs of all types as positional arguments simultaneously:
* tg:// links
* tonsite:// links
* interpret:// file paths
* generic file paths (to share files)

This allows to Drag'n'Drop files to the Telegram shortcut/binary.
2025-10-23 10:23:53 +04:00
John Preston
7e5a29a5cc PoC suggesting posts to channels. 2025-06-27 21:29:34 +04:00
John Preston
03c24e2906 Show better monoforum chat info column. 2025-06-05 15:29:26 +04:00
John Preston
cd05586d51 Fix display of pinned messages in sublists. 2025-06-04 10:00:24 +04:00
John Preston
50b761fab2 Remove showing monoforums inside dialogs widget. 2025-06-04 10:00:23 +04:00
John Preston
fdbdeeb956 Start new tabs for monoforums. 2025-06-04 10:00:21 +04:00
John Preston
f65556acb7 Support drafts in monoforum sublists. 2025-06-04 10:00:21 +04:00
John Preston
76db55ff19 Support forwarding to monoforums. 2025-06-04 10:00:18 +04:00
John Preston
21f8403357 Merge SublistSection into ChatSection. 2025-06-04 10:00:18 +04:00
John Preston
51878ab38e Allow opening monoforums. 2025-06-04 10:00:14 +04:00
John Preston
915dec7ba5 Show right call top bar after migration. 2025-05-01 11:13:18 +04:00
23rd
9ad1d1c25d Fixed some unused-but-set-variable warnings. 2025-05-01 11:13:00 +04:00