22 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 16c630b946 Refactoring 2026-04-03 15:50:39 +08:00
Ilya Laktyushin ae0d5d4a79 Update localization 2026-03-09 17:13:37 +01:00
Ilya Laktyushin b04fd532da Various fixes 2025-12-31 16:51:40 +04:00
Ilya Laktyushin 28d4e1e171 Various improvements 2025-12-16 20:05:44 +04:00
Ilya Laktyushin 6bc1fe1939 Various improvements 2025-12-01 19:54:58 +04:00
Ilya Laktyushin 3886b847ae Various improvements 2025-11-13 08:27:11 +04:00
Ilya Laktyushin 8897deff91 Various improvements 2025-11-04 01:04:57 +04:00
Isaac 73218834ff Various improvements 2025-06-28 23:42:18 +02:00
Isaac 10c28d982e Various improvements 2025-06-27 12:45:19 +02:00
Isaac c7a2fe5d3e Update to iOS 13 2025-06-11 16:59:53 +08:00
Isaac c42b2bd9c0 Various improvements 2025-06-11 13:37:58 +08:00
Isaac 74eb315215 Use server default for channel message price 2025-06-06 00:33:30 +08:00
Isaac b5c3d6f34f Various improvements 2025-06-05 19:09:18 +08:00
Isaac 8d65fb3495 Monoforums 2025-05-27 23:37:35 +08:00
Isaac df088af209 Monoforums 2025-05-27 21:17:05 +08:00
Isaac c984cb956b Monoforums 2025-05-27 00:56:39 +08:00
Isaac f681453bd0 Update API 2025-05-17 00:34:35 +08:00
Isaac 140efd6cfd [WIP] Monoforums 2025-05-10 18:02:55 +01:00
Isaac 22ea05b3aa [WIP] Monoforums 2025-05-05 22:18:39 +02:00
Isaac 084bb5bcd5 [WIP] Post suggestions 2025-04-28 23:34:03 +02:00
Isaac 603d5754db [WIP] Post suggestions 2025-04-23 12:18:56 +04:00