Commit Graph
31 Commits
Author SHA1 Message Date
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 cdc82e4235 Update API 2025-01-06 16:00:43 +04:00
Ilya Laktyushin ad3bed0a9f Various improvements 2024-06-17 21:15:41 +04:00
Ilya Laktyushin 1ae20bd685 Various improvements 2024-06-15 18:41:19 +04:00
Ilya Laktyushin 5470ba80ec Various improvements 2024-06-07 09:51:45 +04:00
Ilya Laktyushin 464eb8625f Hashtag search improvements 2024-05-22 14:04:37 +04:00
Ilya Laktyushin ee2b7be5e2 [WIP] Stickers editor 2024-04-06 19:53:19 +04:00
Ilya Laktyushin f1ef6f438a Don't crash on DrawingStickerEntity decoding 2024-02-02 19:59:09 +04:00
Ilya Laktyushin 6dcfc09165 Message to story sharing improvements 2023-12-27 22:27:49 +04:00
Ilya Laktyushin 7c435bf03e Various improvements 2023-12-20 14:20:11 +04:00
Ilya Laktyushin 3ca419048c Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios 2023-12-19 20:56:31 +04:00
Ilya Laktyushin 7d45c4c9d0 Various improvements 2023-12-16 15:57:24 +04:00
Ilya Laktyushin 43d5a22830 Media editor improvements 2023-12-11 14:27:53 +04:00
Ilya Laktyushin 9cd6344b53 Various improvements 2023-11-25 14:10:36 +04:00
Ilya Laktyushin 517337de27 Fix story reactions dimensions and colors in editor 2023-08-30 05:47:15 +04:00
Ilya Laktyushin 8968444839 Story inline reactions 2023-08-27 18:33:30 +04:00
Ilya Laktyushin db9e286857 Update story reactions [skip ci] 2023-08-25 20:24:08 +04:00
Ilya Laktyushin 55411b1d06 Various improvements 2023-08-24 17:56:41 +04:00
Ilya Laktyushin 40c2c1b620 Various fixes 2023-08-12 19:49:16 +02:00
Ilya Laktyushin b71304a3d2 GIFs in media editor
Image search in media editor
2023-08-07 08:38:02 +02:00
Ilya Laktyushin 5e5f19e6e9 Various fixes 2023-07-14 04:35:23 +02:00
Ilya Laktyushin a4297cf1c5 Various fixes 2023-07-06 21:28:29 +02:00
Ilya Laktyushin d5ea353b92 Don't generate videos for single frame animated stickers 2023-07-05 00:34:40 +02:00
Ilya Laktyushin 7ba7fcc760 Various improvements 2023-07-04 23:45:40 +02:00
Ilya Laktyushin ee3e2b540a Camera and editor improvements 2023-06-27 15:32:45 +02:00
Ilya Laktyushin 1639a6a7ea Fix sticker entities coding 2023-06-21 23:15:35 +04:00
AliandAli f485065435 Fix coding 2023-06-21 19:30:23 +03:00
Ilya Laktyushin f1218abc9b Camera and editor improvements 2023-06-17 22:27:07 +04:00
Ilya Laktyushin 3c274dbf0c Camera and editor improvements 2023-06-06 15:06:22 +04:00
Ilya Laktyushin ab69b9e982 Camera and editor improvements 2023-06-03 01:19:23 +04:00
Ilya Laktyushin a2d7cfba4f Camera and editor improvements 2023-05-15 15:12:51 +04:00