96 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
isaacandClaude Opus 4.7 493f3103b3 Postbox -> TelegramEngine waves 37-43 + wave 44 design/plan (squashed)
Squashes 20 commits — the implementation and outcome commits of
waves 37 through 43 plus wave 44's spec and implementation-plan
docs — into a single commit. Per-wave lessons remain recorded in
docs/superpowers/postbox-refactor-log.md. The unrelated "Add swift
svg" commit is preserved separately outside this squash.

Wave 37 — peerTokenTitle: peer Peer → EnginePeer (1 file)
Wave 38 — canSendMessagesToPeer: peer Peer → EnginePeer (12 files)
Wave 39 — AccountContext.makePeerInfoController: peer Peer → EnginePeer (52 files)
Wave 40 — makeChatQrCodeScreen + makeChatRecentActionsController bundle (8 files)
Wave 41 — RenderedChannelParticipant.peer: Peer → EnginePeer (28 files)
Wave 42 — PeerInfoScreenData.peer: Peer? → EnginePeer? (17 files)
Wave 43 — PeerInfoScreen 6 helpers: peer Peer? → EnginePeer? (12 files)
Wave 44 — RenderedChannelParticipant.peers design doc + implementation plan
         (impl and outcome land in subsequent commits, not part of squash)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-24 23:19:43 +04:00
Ilya Laktyushin 5dce76415a Fix 2026-03-18 19:59:49 +01:00
Ilya Laktyushin ea9d8db1d3 Update API [skip ci] 2026-01-20 14:54:15 +04:00
Ilya Laktyushin dbd5dd9912 Fix auction gift resale 2026-01-08 18:46:37 +04:00
Ilya Laktyushin 59f2f7389a Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios 2025-12-22 00:48:28 +04:00
Ilya Laktyushin 2edce5ebf2 Alerts 2025-12-22 00:19:11 +04:00
Isaac 4c6b273fe1 Merge commit 'ef5b8537e02f66a33dbdace5d5e30f8d69077f5f'
# Conflicts:
#	submodules/TelegramUI/Components/LiquidLens/Sources/LiquidLensView.swift
#	submodules/TelegramUI/Components/TabBarComponent/Sources/TabBarComponent.swift
2025-12-20 03:05:26 +08:00
Isaac 3486393f99 Glass 2025-12-20 03:02:08 +08: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 f7dc38b52e Various fixes 2025-12-08 00:07:54 +04:00
Ilya Laktyushin 0044bde566 Various improvements 2025-12-02 23:02:12 +04:00
Ilya Laktyushin ecb12a784e Various improvements 2025-12-02 19:22:06 +04:00
Ilya Laktyushin 5046aab8ff Update API 2025-12-02 12:36:05 +04:00
Ilya Laktyushin d5a952172a Various improvements 2025-11-20 12:08:19 +01:00
Ilya Laktyushin 8f33585114 Various improvements 2025-11-17 03:15:36 +04:00
Ilya Laktyushin a443df81dd Various improvements 2025-11-15 02:12:21 +04:00
Ilya Laktyushin f91fbff773 Various fixes 2025-11-14 12:47:55 +04:00
Ilya Laktyushin e5a004f67a Various fixes 2025-11-14 00:19:58 +04:00
Ilya Laktyushin 5e17b321f8 Various improvements 2025-11-13 22:06:24 +04:00
Ilya Laktyushin e680691988 Update API 2025-11-12 22:06:23 +04:00
Ilya Laktyushin ac28ed9d74 Various improvements 2025-11-12 17:47:34 +04:00
Ilya Laktyushin 412e02ef00 Gift auctions 2025-11-12 04:46:02 +04:00
Ilya Laktyushin ea8dc07b23 Update API 2025-11-10 18:58:38 +04:00
Ilya Laktyushin 5877f2c20d Various improvements 2025-10-29 17:20:36 +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 85092482f3 Various improvements 2025-10-17 17:01:25 +04:00
Ilya Laktyushin 0915a42e64 Various improvements 2025-10-16 05:30:06 +04:00
Ilya Laktyushin 5d43f14ccb Various improvements 2025-09-23 16:04:39 +04:00
Isaac 4f0b8a8bb4 Fix swift compiler crash 2025-09-18 14:16:02 +04:00
Ilya Laktyushin 9d97a62195 Update localization 2025-09-09 22:12:19 +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 59239ca2df Update API 2025-09-05 15:10:45 +05:00
Ilya Laktyushin e7c698d5f1 Various fixes 2025-08-23 21:40:21 +04:00
Ilya Laktyushin 6e3c3940c2 Various fixes 2025-08-23 11:41:30 +04:00
Ilya Laktyushin a60a437206 Various improvements 2025-08-22 21:46:07 +04:00
Ilya Laktyushin ea63abbc8a Profile main tab 2025-08-18 16:53:01 +04:00
Ilya Laktyushin 60c907e1a9 Update localization 2025-08-01 16:58:14 +02:00
Ilya Laktyushin 37e74f402e Gift improvements 2025-07-26 11:43:02 +02:00
Ilya Laktyushin e7e2fa1e83 Various fixes 2025-07-20 12:18:17 +01:00
Isaac a6544e5d57 Story folders 2025-07-18 16:10:54 +02:00
Ilya Laktyushin b4832ff856 Update API 2025-07-14 12:50:11 +01:00
Isaac c7a2fe5d3e Update to iOS 13 2025-06-11 16:59:53 +08:00
Ilya Laktyushin 0401bc8ef1 Various fixes 2025-05-14 18:51:52 +04:00
Ilya Laktyushin b7f84a97b5 Various fixes 2025-05-06 04:14:21 +04:00
Ilya Laktyushin 3865e253ff Various fixes 2025-05-06 02:09:44 +04:00