38 Commits
Author SHA1 Message Date
Ilya Laktyushin 7a7333edab Various improvements 2026-05-05 14:57:06 +02:00
isaacandClaude Opus 4.7 86d1456552 Postbox -> TelegramEngine waves 107-137 (squashed)
31 waves of consumer-side migration from `import Postbox` to TelegramEngine
typealiases. Net: 173 import drops + 39 BUILD-dep drops + 1 new typealias
(`EngineStoryId = StoryId`, wave 113).

Wave shapes used:
- Orphan-import sweeps (107, 108, 128): drop `import Postbox` from files
  whose only Postbox-symbol reference was the import line itself, then
  resolve build failures. Methodology requires token-level (`grep -oE`)
  filtering, not line-level, to avoid masking real Postbox usage on lines
  that also contain `Namespaces.X` references.
- Identifier-swap mini-waves (109-127, 129-134, 136-137): rename
  Postbox-typealiased identifiers to engine equivalents
  (PeerId -> EnginePeer.Id, MessageId -> EngineMessage.Id,
  MediaId -> EngineMedia.Id, MessageIndex -> EngineMessage.Index,
  StoryId -> EngineStoryId, ItemCollectionId -> EngineItemCollectionId,
  PreferencesEntry -> EnginePreferencesEntry,
  FetchResourceSourceType/Error -> EngineFetchResourceSourceType/Error,
  MemoryBuffer -> EngineMemoryBuffer, MessageTags -> EngineMessage.Tags,
  MessageAttribute -> EngineMessage.Attribute,
  TempBox -> EngineTempBox).
- Asset-string FP-only orphans (124).
- Typealias addition + drain (113): added `EngineStoryId` typealias to
  TelegramCore, then drained 3+11 consumer sites.

Hard blockers identified during these waves (must restore `import Postbox`
when present): MediaResource[A-Za-z]* (any suffix -- the literal
`MediaResource` matches don't catch MediaResourceData/MediaResourceId/etc.),
Postbox/MediaBox/MediaResource raw types, PostboxCoding/PostboxEncoder/
PostboxDecoder, TempBoxFile, ValueBoxKey, PostboxView, combinedView,
HashFunctions, postboxLog, openPostbox, declareEncodable, PeerView,
MessageHistoryView, MessageHistoryThreadData, CachedPeerData, RenderedPeer,
SelectivePrivacyPeer, SimpleDictionary, ItemCollectionInfosView,
ItemCollectionItem, ItemCollectionItemIndex, ItemCollectionViewEntryIndex,
ChatListIndex, ChatListEntrySummaryComponents, CodableEntry,
MessageHistoryThread, MessageHistoryAnchorIndex,
MessageHistoryEntryLocation, PeerStoryStats, PeerNameIndex,
PeerSummaryCounterTags, ChatListTotalUnreadStateCategory/Stats,
arePeersEqual. Protocol-shape blockers: bare `Peer`/`Message`/`Media`
in function signatures, generic args, enum-case payloads, or dict value
types (e.g., `[PeerId: Peer]`, `case messages([Message])`,
`Signal<(Peer?, ...), NoError>`).

`replace_all PeerId -> EnginePeer.Id` is dangerous: mangles compound
names like `failedPeerId`, `ContactListPeerId`, `nextRemoteMediaId`,
`replyToMessageId`. Pre-flight grep `\b[a-z][a-zA-Z]*PeerId\b` and only
replace_all if 0 matches.

Also removes unneeded design/plan docs from a separate (link-highlighting)
feature branch:
- docs/superpowers/plans/2026-05-02-link-highlighting-modern-path-fixes.md
- docs/superpowers/specs/2026-05-02-link-highlighting-modern-path-fixes-design.md

Squashed commits: 6d82c2980d..e6de5d53a3 (59 commits, including
per-wave content commits and per-wave CLAUDE.md bumps).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-03 10:28:50 +02:00
Ilya Laktyushin f41630083a Various improvements 2026-04-24 03:16:14 +02:00
isaacandClaude Opus 4.7 a0ba3fa29c Postbox -> TelegramEngine wave 24: moveResourceData facades + consumer sweep
Adds two TelegramEngine.Resources.moveResourceData overloads and migrates 6 Shape-A sites
across 4 consumer files.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-21 04:04:08 +04:00
isaacandClaude Opus 4.7 4879d89a92 Postbox -> TelegramEngine wave 22: storeResourceData facade + consumer sweep
Same shape as wave 21. Adds TelegramEngine.Resources.storeResourceData(id:, data:, synchronous:)
and sweeps 46 context.account.postbox.mediaBox.storeResourceData sites across 17 files.

The range-store overload and accountManager.mediaBox sites are explicitly out of scope.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-21 03:51:11 +04:00
isaacandClaude Opus 4.7 53f023ea52 Postbox -> TelegramEngine wave 21: completedResourcePath facade + consumer sweep
Combined wave-19+wave-20 shape. Adds TelegramEngine.Resources.completedResourcePath(id:, pathExtension:)
facade and sweeps 29 consumer sites across 14 files in one atomic commit.

Shape A/B migrated. Shape C (5 sites with raw account: Account) and Shape D
(3 sites with local postbox: Postbox field) intentionally skipped — need
module-scoped init-signature rework rather than per-site sweep.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-21 03:19:30 +04:00
Ilya Laktyushin 8f1e024aef Various fixes 2026-04-15 23:12:53 +02:00
Ilya Laktyushin 314f02d36d Various fixes 2026-04-14 04:53:01 +02:00
Isaac 16c630b946 Refactoring 2026-04-03 15:50:39 +08:00
Ilya Laktyushin cbc5a49507 [WIP] Polls 2026-03-13 11:04:33 +01:00
Ilya Laktyushin 0915a42e64 Various improvements 2025-10-16 05:30:06 +04:00
Isaac d2f471bd35 Fix continue recording 2025-09-26 23:55:04 +08:00
Isaac da225fd4d8 Merge commit '1b888befa17d1fdd4e4950e155976e8d81a70bf7' 2025-06-17 13:55:50 +04:00
Isaac 06eaf81fa9 [WIP] Post suggestion 2025-06-17 13:55:44 +04:00
Ilya Laktyushin 8ed9cb99e6 Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios 2025-06-13 18:19:08 +02:00
Ilya Laktyushin 88405d99ec Various improvements 2025-06-13 18:19:01 +02:00
Isaac 2c53fd2273 Update API 2025-06-13 02:15:04 +08:00
Isaac a173850d41 Send videomessages to monoforum "all" tab 2025-06-05 20:36:29 +08:00
Ilya Laktyushin 8dadd30702 Fix recording pause tooltip on iPad 2025-06-05 01:46:50 +02:00
Ilya Laktyushin 0077a070f2 Various fixes 2025-05-28 17:24:15 +02:00
Ilya Laktyushin 34cef80179 Merge branches 'master' and 'master' of gitlab.com:peter-iakovlev/telegram-ios 2025-05-28 16:19:56 +02:00
Ilya Laktyushin 31926980e7 Various fixes 2025-05-28 16:19:25 +02:00
Isaac 8f7006281c Fix monoforum audio recording 2025-05-27 16:57:05 +08:00
Ilya Laktyushin 3985c538a8 Update localization 2025-05-26 01:05:11 +02:00
Ilya Laktyushin 4e804bf9d9 Various improvements 2025-05-25 22:36:50 +02:00
Ilya Laktyushin 7b5883c115 Various fixes 2025-05-25 18:57:37 +02:00
Ilya Laktyushin 76246efb5d Various fixes 2025-05-25 13:18:29 +02:00
Ilya Laktyushin ff29e58d4b Various improvements 2025-05-24 16:38:39 +02:00
Ilya Laktyushin 4180b348f1 Various improvements 2025-05-22 06:12:04 +02:00
Ilya Laktyushin 81e11d6d36 Various improvements 2025-05-20 22:30:48 +02:00
Ilya Laktyushin b2351194d4 Various fixes 2025-02-24 17:11:08 +04:00
Ilya Laktyushin 85b7ecac14 Various improvements 2025-02-22 20:17:15 +04:00
Ilya Laktyushin 8d7f9bf372 Various improvements 2025-02-22 19:17:36 +04:00
Isaac 923587b0da [WIP] Dynamic video streaming 2024-09-18 01:04:29 +08:00
Isaac d7bb7d55b4 - Story search UI
- Delete message confirmation
2024-06-04 19:18:41 +04:00
Isaac 608893e317 Message effects improvements 2024-05-14 15:48:07 +04:00
Isaac 16faaa4575 [WIP] Send message effects 2024-05-03 22:56:50 +04:00
Isaac 6a28337b35 ChatControllerImpl Refactoring 2024-04-22 23:34:55 +04:00