86 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 d9d1210c1d Various improvements 2026-02-19 21:53:26 +04:00
Ilya Laktyushin bbad57434f Various fixes 2026-02-02 15:54:43 +04:00
Ilya Laktyushin 0d12dd29ad Various improvements 2026-01-25 22:17:49 +04:00
Isaac ca6fdc1629 Glass 2026-01-25 00:31:18 +08:00
Ilya Laktyushin 0f53130216 Various improvements 2025-12-25 01:00:37 +04:00
Ilya Laktyushin 2edce5ebf2 Alerts 2025-12-22 00:19:11 +04:00
Ilya Laktyushin 1a1f08de64 Various improvements 2025-12-17 14:31:54 +04:00
Isaac 3982aa3f9e Merge commit '10a429b9440b5b052c0ef08c699fb122b4f962f7' into experimental-3 2025-12-10 00:17:02 +08:00
Isaac 0c3530d8a8 Glass 2025-12-10 00:16:36 +08:00
Ilya Laktyushin 95b074de14 Various fixes 2025-12-08 19:08:32 +04:00
Ilya Laktyushin 03afc1343c Various fixes 2025-12-08 16:23:31 +04:00
Ilya Laktyushin 06cb1ece50 Various improvements 2025-12-05 18:41:50 +04:00
Ilya Laktyushin 6db5077642 Various fixes 2025-12-05 02:26:17 +04:00
Ilya Laktyushin 2cb0c7f147 Various improvements 2025-12-04 07:56:44 +04:00
Ilya Laktyushin 4660f67271 Update localization 2025-12-03 22:25:26 +04:00
Ilya Laktyushin 6bc1fe1939 Various improvements 2025-12-01 19:54:58 +04:00
Ilya Laktyushin b04eee8289 Update API [skip ci] 2025-11-27 19:55:24 +04:00
Ilya Laktyushin 183bc34f79 Various fixes 2025-11-18 17:13:27 +04:00
Ilya Laktyushin 5e17b321f8 Various improvements 2025-11-13 22:06:24 +04:00
Ilya Laktyushin e9a3e599a1 Various improvements 2025-11-13 15:16:41 +04:00
Isaac e44bd4d858 Story updates 2025-10-21 18:28:45 +04:00
Ilya Laktyushin 94ee23649d Various improvements 2025-09-09 20:39:17 +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 711f8f7b46 Various improvements 2025-07-29 21:49:26 +02:00
Ilya Laktyushin 3c87b308f8 Various improvements 2025-07-29 17:39:46 +02:00
Ilya Laktyushin 14ee4b56b5 Various improvements 2025-07-28 23:38:23 +02:00
Ilya Laktyushin cf3bc1edbd Various fixes 2025-07-27 23:36:37 +02:00
Ilya Laktyushin 37e74f402e Gift improvements 2025-07-26 11:43:02 +02:00
Ilya Laktyushin 6617a0c45f Update API 2025-07-24 13:15:15 +02:00
Isaac a6544e5d57 Story folders 2025-07-18 16:10:54 +02:00
Ilya Laktyushin 9bb46769a3 Various fixes 2025-07-16 17:22:42 +01:00
Isaac 21e8bc02ca Cleanup 2025-07-01 19:38:35 +02:00
Isaac adbc7bad61 Various improvements 2025-07-01 14:57:33 +02:00
Isaac 3ed857bfc3 Various improvements 2025-06-29 18:15:50 +02:00
Isaac b2909a3241 Limit min stars 2025-06-29 14:23:52 +02:00
Isaac 73218834ff Various improvements 2025-06-28 23:42:18 +02:00
Isaac 15c9af3ab2 Merge commit 'cbb4a890b29c350992641f47bf60bf61440555bd' 2025-06-28 20:42:59 +02:00
Isaac efd0f35509 WIP 2025-06-28 20:42:47 +02:00
Ilya Laktyushin cbb4a890b2 Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios 2025-06-28 17:41:39 +02:00
Ilya Laktyushin 8862492480 Update API 2025-06-28 17:38:45 +02:00
Isaac f79a244bf2 Various improvements 2025-06-27 17:36:37 +02:00
Isaac 10c28d982e Various improvements 2025-06-27 12:45:19 +02:00
Isaac 3e40713aad Various improvements 2025-06-26 20:29:23 +02:00
Isaac b56a0143f3 Stars 2025-06-24 13:02:37 +02:00
Isaac 51a16c7110 [WIP] Stars [skip ci] 2025-06-24 00:16:00 +02:00
Isaac 9a14b076c6 Update API [skip ci] 2025-06-23 21:52:31 +02:00
Isaac df3e2db84c Suggested posts 2025-06-20 15:37:26 +02:00
Isaac 6dc45113d2 [WIP] Post suggestions 2025-06-17 18:09:45 +04:00