Commit graph

192 commits

Author SHA1 Message Date
Ilya Laktyushin
7a7333edab Various improvements 2026-05-05 14:57:06 +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
Ilya Laktyushin
96b1432434 Various improvements 2026-04-24 04:55:22 +02:00
Ilya Laktyushin
532a3ae3e1 Various fixes 2026-04-16 21:45:26 +02:00
Ilya Laktyushin
352d9f24e8 Fix build 2026-04-16 00:03:09 +02:00
Isaac
1a728382c4 Disable AI button in secret chats 2026-04-03 13:15:06 +08:00
Ilya Laktyushin
f160fb99d9 Various improvements 2026-03-29 16:23:09 +02:00
Isaac
c9add89043 More ai button fixes 2026-03-27 22:33:54 +08:00
Ilya Laktyushin
ed55943a44 Various improvements 2026-03-27 01:13:38 +01:00
Isaac
f48617fbec Update 2026-03-25 00:18:11 +08:00
Isaac
1a17e97a7c Temp 2026-03-23 23:37:31 +08:00
Ilya Laktyushin
d0e26af8b1 Various fixes 2026-03-22 18:05:56 +01:00
Ilya Laktyushin
66d08c0e1b Various improvements 2026-03-22 13:44:04 +01:00
Ilya Laktyushin
87ca0f78d6 Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios 2026-03-21 09:47:24 +01:00
Ilya Laktyushin
ea4bcd9a46 Various improvements 2026-03-21 09:47:17 +01:00
Isaac
af6e5f258e Merge commit '90f110a311'
# Conflicts:
#	Telegram/Telegram-iOS/en.lproj/Localizable.strings
#	submodules/ChatPresentationInterfaceState/Sources/ChatPresentationInterfaceState.swift
2026-03-20 18:55:29 +01:00
Isaac
bc7858ad2b AI editing 2026-03-20 18:23:45 +01:00
Ilya Laktyushin
676f46d44d Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios 2026-03-20 12:48:12 +01:00
Isaac
a2d5c530a5 Various improvements 2026-03-18 00:27:13 +01:00
Ilya Laktyushin
c32f645f5e [WIP] Polls 2026-03-17 16:32:49 +01:00
Ilya Laktyushin
6519b5c84d [WIP] Polls 2026-03-17 11:12:58 +01:00
Ilya Laktyushin
950d99eea7 [WIP] Polls 2026-03-13 14:11:19 +01:00
Ilya Laktyushin
dca6b5f145 Various improvements 2026-03-12 13:51:27 +01:00
Ilya Laktyushin
e02f0fcc9c Fix story collage picker 2026-03-07 00:56:43 +01:00
Ilya Laktyushin
f852dca2c8 Manual date formatting 2026-02-24 13:07:08 +04:00
Ilya Laktyushin
d9d1210c1d Various improvements 2026-02-19 21:53:26 +04:00
Isaac
ca6fdc1629 Glass 2026-01-25 00:31:18 +08:00
Ilya Laktyushin
b80fb9acc9 Various fixes 2026-01-02 16:57:34 +04:00
Ilya Laktyushin
da23f7798d Various fixes 2026-01-02 16:51:41 +04:00
Ilya Laktyushin
efda15d41b Various fixes 2025-12-29 17:04:55 +04:00
Ilya Laktyushin
0d82876099 Various fixes 2025-12-29 15:46:09 +04:00
Ilya Laktyushin
974a2f6caa Various improvements 2025-12-26 13:34:23 +04:00
Ilya Laktyushin
f7f3b92fa7 Various improvements 2025-12-23 22:25:44 +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
b40513ac37 Glass 2025-12-20 03:24:48 +08:00
Ilya Laktyushin
ef5b8537e0 Various fixes 2025-12-17 15:54:44 +04:00
Ilya Laktyushin
1a1f08de64 Various improvements 2025-12-17 14:31:54 +04:00
Ilya Laktyushin
28d4e1e171 Various improvements 2025-12-16 20:05:44 +04:00
Isaac
cd436e8210 Glass 2025-12-01 22:13:33 +08:00
Ilya Laktyushin
9527b2d8be Various improvements 2025-11-13 07:18:15 +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
Ilya Laktyushin
85092482f3 Various improvements 2025-10-17 17:01:25 +04:00
Ilya Laktyushin
473b00c2e7 Various improvements 2025-10-16 08:09:30 +04:00
Ilya Laktyushin
0915a42e64 Various improvements 2025-10-16 05:30:06 +04:00
Isaac
5de7e74180 Merge branch 'master' into glass
# Conflicts:
#	submodules/AttachmentUI/Sources/AttachmentPanel.swift
#	submodules/ChatPresentationInterfaceState/Sources/ChatPanelInterfaceInteraction.swift
#	submodules/TelegramUI/BUILD
#	submodules/TelegramUI/Components/Chat/ChatRecentActionsController/Sources/ChatRecentActionsController.swift
#	submodules/TelegramUI/Components/Chat/ChatTextInputActionButtonsNode/Sources/ChatTextInputActionButtonsNode.swift
#	submodules/TelegramUI/Components/Chat/ChatTextInputPanelNode/Sources/ChatTextInputPanelNode.swift
#	submodules/TelegramUI/Components/PeerInfo/PeerInfoScreen/Sources/PeerInfoScreen.swift
#	submodules/TelegramUI/Components/PeerSelectionController/Sources/PeerSelectionControllerNode.swift
#	submodules/TelegramUI/Sources/Chat/ChatControllerLoadDisplayNode.swift
#	submodules/TelegramUI/Sources/ChatInterfaceStateInputPanels.swift
2025-09-02 19:55:51 +02:00
Isaac
871072ba95 Refactor text input 2025-09-01 21:45:31 +02:00
Isaac
4337026fba Glass 2025-09-01 18:44:03 +02:00
Ilya Laktyushin
b4832ff856 Update API 2025-07-14 12:50:11 +01:00