141 Commits
Author SHA1 Message Date
Ilya Laktyushin 7a7333edab Various improvements 2026-05-05 14:57:06 +02:00
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 d1aa0db537 Postbox -> TelegramEngine waves 46-93 (squashed)
Squash of 63 commits spanning waves 46-93 (plus interspersed docs commits)
of the gradual Postbox->TelegramEngine consumer-side migration.

Scope: 139 files changed, 2123 insertions(+), 452 deletions(-).

## Themes by wave-block

**Waves 46-58 — Peer field migrations + facade additions**
Foundational EnginePeer convenience init additions (PeerReference, RenderedPeer,
SelectivePrivacyPeer). Multiple `peer: Peer` field migrations across PeerInfo,
ChatList, and SettingsUI components.

**Waves 59-73 — peer field cascade + EnginePeer wrap drops**
Series of single- to two-file peer-field migrations; consumer-side wrap
removal (`EnginePeer(peer)` -> direct EnginePeer use); `as? TelegramUser`
cast conversion to `case let .user(...)` enum match. Wave 64: RenderedPeer
convenience init. Wave 68: SelectivePrivacyPeer convenience init.

**Waves 74-83 — controller-Node bridge cleanup + small migrations**
Wave-71 shadow-pattern cleanup at controller->Node bridges. Migrations of
ChatRecentActionsController.peer (74), PeerInfoMember (75), MentionChatInputPanelItem
(76), PassportUI SecureIdAuthController (77), AccountWithInfo + ShareController
(78), peerInputActivitiesPromise (79), InactiveChannel (80), BlockedPeers (81),
openHashtag resolveSignal (82), NotificationExceptionsList (83).

**Waves 84-90 — TelegramEngine.Resources facade migrations**
Per-method Shape-A/B sweeps converting `<ctx>.account.postbox.mediaBox.X(...)`
to `<ctx>.engine.resources.X(...)`. Wave 90 was a single-commit big sweep:
40 fetchedMediaResource sites in 25 files migrated to engine.resources.fetch
facade in one atomic pass with first-pass-clean build.

Methods covered: storeResourceData, completedResourcePath, cancelInteractiveResourceFetch,
resourceRangesStatus, resourceStatus, fetch (fetchedMediaResource).

**Waves 91-92 — additional type migrations**
Wave 91: ItemListWebsiteItem.peer + RecentSessionsController enum-case payload
+ openWebSession callback Peer? -> EnginePeer?.
Wave 92: ChatListController StateHolder.EntryContext status type
MediaResourceStatus -> EngineMediaResource.FetchStatus.

**Wave 93 — speculative `import Postbox` drop sweep**
Drop import from 7 wave-touched files where it became unused; restore in 5
files where bare PeerId/Message/MediaId/StoryId references escaped the
pre-flight regex. Includes one MediaId(...) -> EngineMedia.Id(...) swap in
InAppPurchaseManager to unlock its import drop.

## Build state

Final state at squash: clean Telegram/Telegram build at debug_sim_arm64.

## Persistent-state notes

- Pre-existing WIP unchanged across the squashed range:
  - build-system/bazel-rules/sourcekit-bazel-bsp submodule marker
  - Untracked: build-system/tulsi/, submodules/TgVoip/, third-party/libx264/

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-25 20:48:15 +04:00
Ilya Laktyushin ae6d05c49d Various fixes 2026-04-07 06:36:13 +02:00
Mikhail Filimonov db93244583 update api (rarities, crafted) 2026-01-16 16:20:08 +04:00
Ilya Laktyushin c654227b83 Various fixes 2026-01-05 15:14:19 +04:00
Isaac 3486393f99 Glass 2025-12-20 03:02:08 +08:00
Isaac 1ee7268488 Glass 2025-12-06 01:28:06 +08:00
Ilya Laktyushin 6bc1fe1939 Various improvements 2025-12-01 19:54:58 +04:00
Ilya Laktyushin b83250ac63 Fix 2025-11-18 22:08:06 +04:00
Ilya Laktyushin cbf23d0df5 Various fixes 2025-11-14 02:08:00 +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
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 0915a42e64 Various improvements 2025-10-16 05:30:06 +04:00
Ilya Laktyushin c7f607865a Various improvements 2025-09-28 20:04: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 eac655f572 Various improvements 2025-08-28 05:22:22 +04:00
Ilya Laktyushin 4a5e7ebed4 Various improvements 2025-08-27 17:32:48 +04:00
Ilya Laktyushin 498ce24a09 Various fixes 2025-08-25 02:16:37 +04: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 fd9b25b527 Various fixes 2025-07-19 15:53:00 +01:00
Ilya Laktyushin dff0a61d19 Various improvements 2025-07-19 12:51:42 +01:00
Ilya Laktyushin 4016ae8a25 Update localization 2025-06-29 14:54:42 +02:00
Ilya Laktyushin 8862492480 Update API 2025-06-28 17:38:45 +02:00
Ilya Laktyushin 3b46e1d3d0 Various fixes 2025-06-26 14:09:26 +02:00
Ilya Laktyushin cae2388f95 Various improvements 2025-06-25 12:00:37 +02:00
Isaac d27741e5d9 Stars 2025-06-24 13:19:36 +02:00
Isaac adae44e26f Merge commit '34372148fb42eee7bc7cd724cb475dba0dc0e95d'
# Conflicts:
#	submodules/TelegramCore/Sources/TelegramEngine/Payments/Stars.swift
#	submodules/TelegramUI/Components/Stars/StarsAvatarComponent/Sources/StarsAvatarComponent.swift
#	submodules/TelegramUI/Components/Stars/StarsTransactionScreen/Sources/StarsTransactionScreen.swift
#	submodules/TelegramUI/Components/Stars/StarsTransactionsScreen/Sources/StarsBalanceComponent.swift
#	submodules/TelegramUI/Components/Stars/StarsTransactionsScreen/Sources/StarsTransactionsListPanelComponent.swift
2025-06-24 13:06:19 +02:00
Isaac b56a0143f3 Stars 2025-06-24 13:02:37 +02:00
Ilya Laktyushin d166e32b3e Various improvements 2025-06-24 01:24:14 +02:00
Ilya Laktyushin c22e60092f Update API 2025-06-21 13:40:00 +02:00
Isaac c7a2fe5d3e Update to iOS 13 2025-06-11 16:59:53 +08:00
Ilya Laktyushin 41ae916106 Various improvements 2025-06-08 18:28:49 +02:00
Ilya Laktyushin 751e20043f Various fixes 2025-05-02 00:51:14 +04:00
Ilya Laktyushin 2962851527 Various improvements 2025-04-22 21:06:46 +04: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 edecdd7fec Various fixes 2025-03-07 21:58:30 +04:00
Ilya Laktyushin f541820b46 Various improvements 2025-03-02 04:55:34 +04:00
Ilya Laktyushin 7a89a58930 Various improvements 2025-02-28 20:09:31 +04:00
Ilya Laktyushin bc4b8152c3 Various improvements 2025-02-27 22:27:00 +04:00
Ilya Laktyushin 43d6e7e81c Various improvements 2025-02-27 22:04:52 +04:00
Ilya Laktyushin cb0b8c0b9e Various improvements 2025-02-25 19:59:48 +04:00
Ilya Laktyushin 8d7f9bf372 Various improvements 2025-02-22 19:17:36 +04:00
Ilya Laktyushin 2f2a27f0d2 Various improvements [skip ci] 2025-02-12 22:15:02 +04:00
Ilya Laktyushin 5d4213c4fc Various improvements 2024-12-27 23:04:34 +04:00