Ilya Laktyushin
|
91eb779ae2
|
Merge commit 'c64653ed37'
|
2026-05-14 12:45:26 +02:00 |
|
isaac
|
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
|
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 |
|
isaac
|
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 |
|
isaac
|
8408e0ae19
|
Postbox -> TelegramEngine waves 27-36
Consumer-sweep, facade-addition, and Peer→EnginePeer migrations:
- Wave 27: preferencesView consumer sweep
- Wave 28: resourceData consumer sweep
- Wave 29: resourceStatus consumer sweep
- Wave 30: _asStatus() bridge cleanup
- Wave 31: unused-import sweep re-run
- Wave 32: resourceStatus residue sweep
- Wave 33: loadedPeerWithId consumer sweep
- Wave 34: FoundPeer.peer Peer -> EnginePeer
- Wave 35: SendAsPeer.peer Peer -> EnginePeer
- Wave 36: ContactListPeer.peer Peer -> EnginePeer
Also includes per-wave specs, implementation plans, outcome logs, and
a CLAUDE.md wave-counter update.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
2026-04-24 11:24:13 +04:00 |
|
Ilya Laktyushin
|
0df319742a
|
Update API
|
2026-04-16 01:18:22 +02:00 |
|
Ilya Laktyushin
|
8f1e024aef
|
Various fixes
|
2026-04-15 23:12:53 +02:00 |
|
Isaac
|
16c630b946
|
Refactoring
|
2026-04-03 15:50:39 +08:00 |
|
Ilya Laktyushin
|
265b502f76
|
Various fixes
|
2026-03-28 15:55:50 +01:00 |
|
Ilya Laktyushin
|
e279f224a1
|
Various improvements
|
2026-03-06 13:20:49 +01: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
|
2db08cde89
|
Glass
|
2026-01-13 19:21:49 +04:00 |
|
Ilya Laktyushin
|
2a5b83429a
|
Various fixes
|
2026-01-06 14:20:06 +04:00 |
|
Isaac
|
586f5039f1
|
Merge commit '974a2f6caa'
# Conflicts:
# submodules/TelegramUI/Components/GlobalControlPanelsContext/Sources/GlobalControlPanelsContext.swift
# submodules/TelegramUI/Components/LiquidLens/Sources/LiquidLensView.swift
# submodules/TelegramUI/Components/TranslateHeaderPanelComponent/Sources/ChatTranslationPanelNode.swift
# submodules/TelegramUI/Sources/ChatControllerNode.swift
|
2025-12-26 20:34:31 +08:00 |
|
Isaac
|
4a13c3830a
|
Glass
|
2025-12-26 20:29:30 +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 |
|
Isaac
|
42f10b4fed
|
Merge branch 'master' into glass-26
|
2025-12-02 17:30:38 +08:00 |
|
Ilya Laktyushin
|
6bc1fe1939
|
Various improvements
|
2025-12-01 19:54:58 +04:00 |
|
Isaac
|
0055396d4d
|
Update
|
2025-11-26 23:05:30 +08:00 |
|
Ilya Laktyushin
|
cbf23d0df5
|
Various fixes
|
2025-11-14 02:08:00 +04:00 |
|
Isaac
|
b9b38e5fbf
|
Various improvements
|
2025-10-11 00:56:21 +08: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
|
da930a44ad
|
Fix crash
|
2025-07-23 21:41:19 +02:00 |
|
Isaac
|
5ad4331eeb
|
WIP
|
2025-07-17 10:34:19 +02:00 |
|
Ilya Laktyushin
|
f610e8b3b3
|
Various improvements
|
2025-06-30 00:06:27 +02:00 |
|
Ilya Laktyushin
|
30c2bbc94b
|
Various improvements
|
2025-06-29 00:41:38 +02:00 |
|
Isaac
|
15c9af3ab2
|
Merge commit 'cbb4a890b2'
|
2025-06-28 20:42:59 +02:00 |
|
Isaac
|
a23deded22
|
Cleanup
|
2025-06-28 19:48:34 +02:00 |
|
Ilya Laktyushin
|
8862492480
|
Update API
|
2025-06-28 17:38:45 +02:00 |
|
Isaac
|
d27741e5d9
|
Stars
|
2025-06-24 13:19:36 +02:00 |
|
Isaac
|
adae44e26f
|
Merge commit '34372148fb'
# 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
|
9e18743b1b
|
Support Xcode 16.3
|
2025-05-13 11:40:24 +08:00 |
|
Isaac
|
54c5314462
|
Update conference calls
|
2025-04-01 13:56:08 +04:00 |
|
Ilya Laktyushin
|
f541820b46
|
Various improvements
|
2025-03-02 04:55:34 +04:00 |
|
Ilya Laktyushin
|
2dfe959eb2
|
Various fixes
|
2025-02-26 19:09:35 +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
|
5d4213c4fc
|
Various improvements
|
2024-12-27 23:04:34 +04:00 |
|
Isaac
|
7aaf95e40a
|
Stars ref
|
2024-11-30 00:23:21 +04:00 |
|
Isaac
|
c229c3c94f
|
Stars ref
|
2024-11-29 18:04:15 +04:00 |
|
Ilya Laktyushin
|
2c3bd7570b
|
Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios
|
2024-11-29 00:28:59 +04:00 |
|
Ilya Laktyushin
|
c4013c3df6
|
Various improvements
|
2024-11-29 00:28:50 +04:00 |
|
Isaac
|
1322c4364e
|
Stars ref
|
2024-11-29 00:07:25 +04:00 |
|
Isaac
|
be83150aba
|
[WIP] Star refs
|
2024-11-28 16:13:06 +04:00 |
|