43 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
Isaac 3486393f99 Glass 2025-12-20 03:02:08 +08:00
Ilya Laktyushin 8897deff91 Various improvements 2025-11-04 01:04:57 +04:00
Ilya Laktyushin c014d0b333 Various improvements 2025-10-22 21:12:38 +04:00
Isaac e44bd4d858 Story updates 2025-10-21 18:28:45 +04:00
Ilya Laktyushin 76e8d79f9f Update API 2025-09-06 13:35:19 +05:00
Ilya Laktyushin 72c58813a8 Various improvements 2025-08-01 23:25:24 +02:00
Ilya Laktyushin ddb09c821d Various improvements 2025-07-31 09:55:21 +02:00
Ilya Laktyushin dff0a61d19 Various improvements 2025-07-19 12:51:42 +01:00
Ilya Laktyushin 8862492480 Update API 2025-06-28 17:38:45 +02:00
Isaac d27741e5d9 Stars 2025-06-24 13:19:36 +02:00
Isaac b56a0143f3 Stars 2025-06-24 13:02:37 +02:00
Ilya Laktyushin c22e60092f Update API 2025-06-21 13:40:00 +02:00
Ilya Laktyushin 8bf0663c08 Various fixes 2025-03-08 00:16:23 +04:00
Ilya Laktyushin 368f6695e1 Various fixes 2025-03-08 00:05:30 +04:00
Ilya Laktyushin cb0b8c0b9e Various improvements 2025-02-25 19:59:48 +04:00
Isaac be83150aba [WIP] Star refs 2024-11-28 16:13:06 +04:00
Ilya Laktyushin 7db42376bd Varios fixes 2024-10-29 19:31:50 +04:00
Ilya Laktyushin 3d03fc94c6 Various improvements 2024-10-25 19:09:31 +04:00
Ilya Laktyushin 2fa059477c Various fixes 2024-10-25 03:04:39 +04:00
Ilya Laktyushin 3fe6f7a069 Various improvements 2024-10-19 20:24:02 +04:00
Ilya Laktyushin cc6f7882f1 Various improvements 2024-10-15 04:47:03 +04:00
Ilya Laktyushin 89e3ae02a2 Various improvements 2024-10-09 00:05:41 +04:00
Ilya Laktyushin b4415c251b Various fixes 2024-07-21 00:29:07 +04:00
Ilya Laktyushin b4cc4e0bd0 Various improvements 2024-07-16 02:41:00 +04:00
Ilya Laktyushin e23c7f2e2b Various fixes 2024-06-27 03:28:53 +04:00
Ilya Laktyushin d02046973f Various fixes 2024-06-22 22:16:43 +04:00
Ilya Laktyushin 3907c2ae9f Ads button in star stats 2024-06-22 19:55:37 +04:00
Ilya Laktyushin b5b052ff7d Paid media improvements 2024-06-22 00:05:21 +04:00
Ilya Laktyushin 22ab38ee85 Improve bot star transactions list 2024-06-20 23:01:20 +04:00
Ilya Laktyushin 40a4183095 Paid media content 2024-06-18 18:57:32 +04:00
Ilya Laktyushin 2292e8cac8 Various fixes 2024-06-18 02:18:43 +04:00
Ilya Laktyushin f8fcaa071c Add stars proceeds info 2024-06-16 21:48:35 +04:00
Ilya Laktyushin c0489e251b Add support for stars withdrawal timeout 2024-06-16 15:51:21 +04:00
Ilya Laktyushin a232ba765f Various fixes 2024-06-16 02:46:28 +04:00
Ilya Laktyushin 5d2377bcb7 Various improvements 2024-06-15 20:34:07 +04:00
Ilya Laktyushin d050cf8ce9 Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios 2024-06-15 18:51:57 +04:00
Ilya Laktyushin 1ae20bd685 Various improvements 2024-06-15 18:41:19 +04:00
Isaac 032ded0817 Merge commit '8ad27b9ef21990ebc224f9110b8e3ad6e83b2fd0' 2024-06-14 11:49:57 +04:00
Ilya Laktyushin 2150d65f78 Update API [skip ci] 2024-06-13 22:13:25 +04:00
Isaac 9a075fa39e Refactoring 2024-06-12 23:04:04 +04:00
Ilya Laktyushin 1cc27e2a20 Various improvements 2024-06-07 14:07:01 +04:00
Ilya Laktyushin 5470ba80ec Various improvements 2024-06-07 09:51:45 +04:00