27 Commits
Author SHA1 Message Date
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 2edce5ebf2 Alerts 2025-12-22 00:19:11 +04:00
Isaac 923587b0da [WIP] Dynamic video streaming 2024-09-18 01:04:29 +08:00
Ali a6e5098be0 Support the thread-quote special case 2023-10-25 17:59:55 +04:00
Ali ebd414691c [WIP] Stories 2023-05-26 22:13:22 +04:00
Ali 93cb743468 Emoji improvements 2022-09-01 03:12:43 +04:00
Ali ed59ead31e [WIP] Animated emoji 2022-07-08 19:53:20 +02:00
Ilya Laktyushin 70ae305e99 Various improvements 2022-04-30 03:52:31 +04:00
Ali 7c8ad70014 Merge branch 'master' into experimental-2 2021-07-21 22:04:58 +02:00
Ali 1a04fb4408 Refactor SyncCore back into TelegramCore 2021-07-21 21:43:20 +02:00
Ali c5f7d855d5 Fix build 2021-07-07 02:13:31 +04:00
Ali 4776730243 Merge branch 'master' into features/64-bit 2021-07-05 00:50:38 +04:00
Ali 4893e41de2 Refactoring [skip ci] 2021-07-05 00:48:11 +04:00
Ali a23971c0ef Initial 64-bit id support 2021-06-28 20:02:50 +04:00
Ali 60d959bff8 Refactoring 2021-04-18 03:10:18 +04:00
Ali d26313f99a Animation experiment 2021-04-13 21:06:58 +04:00
Ali 4dae31e340 Initial peer id refactoring 2021-03-24 19:35:52 +04:00
Ali bead41710b Video call improvements 2020-08-21 21:11:29 +01:00
Ali 150a176cbc Likes 2020-05-15 20:35:00 +04:00
Ilya Laktyushin bd2b30b51f Fix channel ownership transfer alert layout 2020-05-11 04:56:04 +04:00
Ilya Laktyushin 1e914ba95c Fix call rating alert layout 2020-05-06 15:54:22 +04:00
Ali eaa8bcb08e Support Dynamic Type 2019-11-19 23:28:36 +04:00
Peter cbaf7d1ada Merge commit '77a592a05c9e599c3dcedb59c1fadc70699bd2e6' into background-task 2019-10-22 19:10:24 +04:00
Peter 10692a323e Refactor SyncCore 2019-10-21 16:58:00 +04:00
Ilya Laktyushin 4da3336dfb Various fixes 2019-10-17 15:22:44 +03:00
Peter f1d1754aa5 Temp 2019-08-30 23:32:32 +04:00
Peter 55b0df2ff7 Refactor TelegramNotices, TelegramPermissions, PhotoResources, ImageTransparency, TinyThumbnail 2019-08-11 03:56:10 +03:00