Commit Graph
64 Commits
Author SHA1 Message Date
Ilya Laktyushin 7a7333edab Various improvements 2026-05-05 14:57:06 +02:00
isaacisaacClaude 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 37d1e2d93e Various fixes 2026-04-29 15:49:21 +02:00
Ilya Laktyushin f41630083a Various improvements 2026-04-24 03:16:14 +02:00
isaacisaacClaude 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
Ilya Laktyushin 314f02d36d Various fixes 2026-04-14 04:53:01 +02:00
Ilya Laktyushin 2c4c9a9d9b [WIP] Live photos 2026-02-20 13:28:58 +04:00
IsaacandIsaac ca6fdc1629 Glass 2026-01-25 00:31:18 +08:00
IsaacandIsaac 70a0f01951 Fix view once 2025-11-14 05:25:18 +08:00
IsaacandIsaac d5d4bad649 Various improvements 2025-09-26 19:44:40 +08:00
IsaacandIsaac b62fd285d6 Fix build 2025-09-23 21:04:01 +08:00
IsaacandIsaac 3684c6ca15 Various improvements 2025-09-23 20:49:12 +08:00
IsaacandIsaac 80a7f9fcd2 Input field fixes 2025-09-19 19:08:46 +04:00
IsaacandIsaac 16b981651a Various improvements 2025-09-19 17:51:11 +04:00
IsaacandIsaac d4a4305f5b Various improvements 2025-09-19 15:36:36 +04:00
Ilya Laktyushin 4e804bf9d9 Various improvements 2025-05-25 22:36:50 +02:00
Ilya Laktyushin d1eec8686f Various improvements 2025-01-23 01:37:20 +04:00
Ilya Laktyushin f137e27944 Update API 2025-01-16 02:16:28 +04:00
Ilya Laktyushin d2b5476293 [WIP] Story collage 2024-11-27 18:41:03 +04:00
IsaacandIsaac 923587b0da [WIP] Dynamic video streaming 2024-09-18 01:04:29 +08:00
Ilya Laktyushin d4b769f5a1 Various fixes 2024-08-23 01:45:37 +04:00
Ilya Laktyushin 60196075a6 Fix video message layout when minimized container is present 2024-07-27 01:21:33 +02:00
Ilya Laktyushin 8e219193d0 Various fixes 2024-07-26 17:29:12 +02:00
Ilya Laktyushin 345616704a Browser improvements 2024-07-22 07:11:46 +04:00
Ilya Laktyushin af5408d526 Various fixes 2024-07-21 20:00:24 +04:00
Ilya Laktyushin 3e448e833e Story covers 2024-07-19 17:43:17 +04:00
Ilya Laktyushin 3fc1dd7455 Various improvements 2024-07-16 16:45:16 +04:00
Ilya Laktyushin 4216ee3933 Various improvements 2024-07-13 18:13:58 +04:00
IsaacandIsaac 9a075fa39e Refactoring 2024-06-12 23:04:04 +04:00
IsaacandIsaac 608893e317 Message effects improvements 2024-05-14 15:48:07 +04:00
IsaacandIsaac 3da1b96775 [WIP] Video message send context menu 2024-05-13 23:37:30 +04:00
Ilya Laktyushin a5db741b38 [WIP] Stickers editor 2024-04-08 20:34:00 +04:00
IsaacandIsaac efae3b90a7 Support Xcode 15.3 2024-04-02 19:16:00 +04:00
Ilya Laktyushin 840c80546f Various fixes 2024-02-29 02:31:14 +04:00
IsaacandIsaac 8446fd3ab1 Business fixes 2024-02-28 19:22:43 +04:00
Ilya Laktyushin 939b29770a Fix video message audio 2024-02-19 14:59:45 -04:00
Ilya Laktyushin 77d45e60bc Various fixes 2024-02-15 16:15:48 -04:00
Ilya Laktyushin 59c65198de Various fixes 2024-02-12 17:23:30 -04:00
Ilya Laktyushin c3af008cd2 Disable haptics while recording video messages 2024-02-11 15:01:11 +04:00
Ilya Laktyushin b4b90b090c Group boosts 2024-02-05 16:18:02 +04:00
Ilya Laktyushin 1b2b7dc403 Group boosts 2024-02-01 12:29:07 +04:00
Ilya Laktyushin 669151da80 Various improvements 2024-01-26 01:53:43 +04:00
Ilya Laktyushin 7b8e64ca8a Various fixes 2024-01-22 17:10:05 +04:00
Ilya Laktyushin 2bbb9fd1f3 Use asynchronous thumbnail generation for round videos 2024-01-22 15:38:06 +04:00
Ilya Laktyushin e8fd1351c4 Various fixes 2024-01-20 11:54:15 +04:00
Ilya Laktyushin efa1212fa6 Various fixes 2024-01-18 16:25:35 +04:00
Ilya Laktyushin 64d5a443d7 Various fixes 2024-01-18 15:13:38 +04:00
Ilya Laktyushin 45dea1579c Various fixes 2024-01-17 19:18:03 +04:00
Ilya Laktyushin fb0c186299 Various fixes 2024-01-17 18:35:43 +04:00
Ilya Laktyushin 346790b650 Varios fixes 2024-01-17 17:43:04 +04:00