84 Commits
Author SHA1 Message Date
isaacandClaude Opus 4.7 69bfc65da7 Postbox refactor waves 138–276: 168-commit squash
Consolidates 137 wave commits + 31 supporting commits (CLAUDE.md bump,
typealias additions, AnyObject→EngineMedia restoration) into one squashed
commit. Migrates dozens of consumer-side public APIs, struct fields,
protocol methods, and enum payloads from Postbox protocols/structs to
TelegramEngine engine wrappers and typealiases. Drops `import Postbox`
from many files. Adds new TelegramCore typealiases and one
TelegramEngineUnauthorized facade.

Notable changes by category:

**TelegramCore typealias additions** (rule 2 — narrow utility typealiases):
- EngineChatListIndex, EngineTempBoxFile, EngineItemCollectionItemIndex,
  EngineItemCollectionViewEntryIndex, EngineValueBoxEncryptionParameters,
  EngineMessageAndThreadId, EnginePeerStoryStats, EngineMessageHistoryAnchorIndex,
  EngineChatListTotalUnreadStateCategory, EngineChatListTotalUnreadStateStats,
  EnginePeerSummaryCounterTags, EngineChatListTotalUnreadState,
  EngineItemCacheEntryId, EngineHashFunctions,
  EngineCachedMediaResourceRepresentationResult,
  EngineMediaResourceDataFetchResult, EngineMediaResourceDataFetchError,
  EngineMediaResourceStatus, EngineCachedPeerData

**TelegramCore engine extensions/forwarders**:
- EngineMessage.engineMedia, EngineMessage.enginePeers,
  EngineMessage.adAttribute, EngineMessage.effectivelyIncoming
- engineFileSize forwarder
- TelegramEngine.Resources.clearCachedMediaResources(mediaResourceIds: Set<EngineMediaResource.Id>)
- TelegramEngine.Resources.fetchStatus(id:resourceSize:)
- TelegramEngineUnauthorized.UnauthorizedResources facade with storeResourceData

**Public API/struct migrations to engine types**:
- ChatAvailableMessageActions.banAuthor/banAuthors → EnginePeer?/[EnginePeer]
- WebSessionsContextState.peers → [EnginePeer.Id: EnginePeer]
- CacheUsageStats.peers → [EnginePeer.Id: EnginePeer]
- PeerCommand.peer → EnginePeer
- PeerInfoControllerMode.calls(messages:) → [EngineMessage]
- CallControllerNodeProtocol.updatePeer → EnginePeer params
- ChatHistoryListNode.messageInCurrentHistoryView (and 4 variants) → EngineMessage?
- ChatHistorySearchContainerNode.messageForGallery → EngineMessage?
- PeerInfoPaneNode.findLoadedMessage / ensureMessageIsVisible /
  transitionNodeForGallery → engine-typed
- GalleryHiddenMediaTarget.getTransitionInfo /
  GalleryHiddenMediaManager.findTarget → engine-typed
- ChatPanelInterfaceInteraction.presentReactionDeletionOptions /
  presentBan*MessageOptions → EnginePeer
- DrawingMessageRenderer.messages → [EngineMessage]
- ChatVideoGalleryItemScrubberView.setFetchStatusSignal →
  EngineMediaResource.FetchStatus
- ChannelDiscussionGroupActionSheetItem.peer, VoiceChatPeerEntry.peer,
  VoiceChatFullscreenParticipantItem.peer, MediaStreamComponent.chatPeer,
  MediaStreamVideoComponent.callPeer, ChatMessageContactBubbleContentNode.contactPeer,
  ChatMessageForwardInfoNode.peer, ChatMessageCommentFooterContentNode.replyPeers,
  ChatReportPeerTitlePanelNode.peer, ChatMessageActionUrlAuthController.bot,
  PeerMediaCollectionInterfaceState.peer, ChatMessageCallBubbleContentNode.peopleAvatars,
  ChatLoadingNode.renderedPeer (→ EngineRenderedPeer) — all to engine types

**Wave-71-shadow stored-field migrations** (Postbox Peer/Message → Engine wrapper):
- LegacyCallControllerNode.peer
- CallStatusBarNode.currentPeer

**Dead-code / dead-field removals**:
- CallController.peer, CallControllerNodeV2.account,
  ContactMultiselectionController PeerNameIndex fields,
  preparedChatListNodeViewTransition account: Account param,
  FetchResource.swift entirely (unused function)

**Module-level Postbox import drops**: 30+ files including TelegramRootController,
EditStories, GiftViewScreen, AnimatedStickerUtils, FetchPhotoLibraryImageResource,
PeerInfoGiftsPaneNode, PeerInfoPaneContainerNode, PresentAddMembers,
PeerInfoProfileItems, ChatControllerAdminBanUsers, PresentationData typealiases,
DefaultDayPresentationTheme, ChatListViewTransition, GalleryHiddenMediaManager,
RecentSessionsController, GifContext, AuthorizationSequenceController,
PeerInfoHeaderEditingContentNode, PeerInfoHeaderNode,
PeerAllowedReactionListController, CallControllerNodeV2, and 6 PeerInfo pane files.

**AnyObject restoration**: rule 8 added (never substitute Postbox protocols
with Any/AnyObject) — undid previous AnyObject substitutions in waves 141/143
back to EngineMedia.

Doc maintenance: CLAUDE.md updated to reflect new typealiases and forwarders.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-05 00:44:27 +02:00
isaacandClaude Opus 4.7 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
Isaac 16c630b946 Refactoring 2026-04-03 15:50:39 +08:00
Ilya Laktyushin ed55943a44 Various improvements 2026-03-27 01:13:38 +01:00
Isaac 2db08cde89 Glass 2026-01-13 19:21:49 +04:00
Ilya Laktyushin f7f3b92fa7 Various improvements 2025-12-23 22:25:44 +04:00
Isaac 9eddffb694 Various improvements 2025-11-11 18:29:30 +08:00
Isaac e09b241a9b Updates 2025-11-04 00:56:08 +04:00
Isaac b9b38e5fbf Various improvements 2025-10-11 00:56:21 +08:00
Ilya Laktyushin 4fc3ba70fc Various fixes 2025-09-07 14:57:43 +05:00
Isaac adbc7bad61 Various improvements 2025-07-01 14:57:33 +02:00
Isaac 962ca74101 [WIP] Conference calls 2025-02-07 15:22:47 +04:00
Isaac 4fb071d91d [WIP] Conference calls 2025-01-24 21:03:51 +04:00
Isaac 7e9b1fcc40 [WIP] Conference calls 2024-12-10 22:17:36 +08:00
Isaac 931e34e1bd Temp 2024-11-27 17:37:21 +04:00
Isaac b97b8c369e Live streaming v2 2024-07-12 14:16:07 +04:00
Isaac 9a075fa39e Refactoring 2024-06-12 23:04:04 +04:00
Isaac 02f04e4c67 Fix build 2023-12-19 20:25:21 +04:00
Ali 4b8027bbe2 Various improvements 2023-10-22 01:22:12 +04:00
Ali b2036845f0 Fix more leaks 2023-09-29 18:20:53 +04:00
Ali 77a5857a25 Sharing refactoring 2023-08-15 23:57:04 +04:00
Ilya Yelagov e84b49e081 Cleanup 2023-01-08 17:44:35 +04:00
Ilya Yelagov cd4dc4b1c0 Cleanup 2023-01-08 17:07:03 +04:00
Ilya Yelagov 21edd2b46e Fixing long RTL title 2023-01-08 14:51:16 +04:00
Ilya Yelagov 2863524530 Fixing transition animations and delaying activityIndicator when starting live stream 2023-01-06 15:26:11 +04:00
Ilya Yelagov f1108af238 Adjusting layout and design, fixing fullscreen PiP and other tweaks 2023-01-06 00:14:38 +04:00
Ilya Yelagov c8ab1b8971 Smooth fullscreen transitions and tweaking PiP placeholder visibility 2023-01-05 04:13:26 +04:00
Ilya Yelagov 1424e7135d Fixing streaming error message, dismiss animation, 1 member, stream title, context menu dismiss on recording, shimmer animation, adding animated counter to toolbar, 2023-01-04 22:07:05 +04:00
Ilya Yelagov 4af3987427 Limiting title width, animating fullscreen transition, resetting offset on fullscreen 2022-12-18 21:44:32 +04:00
Ilya Yelagov 6c2cd20146 Fixing stall out animation, orientation and fullscreen insets 2022-12-13 13:29:48 +04:00
Ilya Yelagov 4ead717431 Fixing safearea detection in media stream sheet (iOS 16) 2022-12-09 23:45:57 +04:00
Ilya Yelagov 7238477952 Merge tag 'release-9.2' into media-streaming-9-2
# Conflicts:
#	submodules/TelegramCallsUI/Sources/Components/MediaStreamComponent.swift
2022-12-09 19:41:03 +04:00
Ilya Yelagov a9977a5bd6 Device corner radius 2022-12-08 13:38:21 +04:00
Ilya Yelagov 55e2276e43 Refactoring 2022-12-08 10:14:34 +04:00
Ilya Yelagov 81f69b801d Removing debug timer 2022-12-08 09:53:30 +04:00
Ilya Yelagov 197128c3fe Refactoring 2022-12-08 09:41:39 +04:00
Ilya Yelagov cd09a54fe4 Refactoring 2022-12-08 08:43:31 +04:00
Ilya Yelagov 073920c5ec Supporting varying aspect ratio 2022-12-08 08:02:16 +04:00
Ilya Yelagov abe0be6d63 Tweaking pip substitution animation 2022-12-08 07:37:37 +04:00
Ilya Yelagov c918416fa8 Disabling debug members 2022-12-08 06:31:35 +04:00
Ilya Yelagov ff4267774f Fixing fullscreen on iPad 2022-12-08 05:59:24 +04:00
Ilya Yelagov b1d44fb98e Fullscreen before loaded layout 2022-12-08 04:49:29 +04:00
Ilya Yelagov 17ef4ae35b Throttling playback status change 2022-12-08 00:07:59 +04:00
Ilya Yelagov bfa7de8e27 Tweaking offsets and landscape mode 2022-12-07 22:34:55 +04:00
Ilya Yelagov c28d2bc888 Adding avatar placeholder and tweaking blur animation 2022-12-07 20:02:12 +04:00
Ilya Yelagov c65ad5ad97 Observing video input to detect stall 2022-12-07 17:04:37 +04:00
Ilya Yelagov a74098cd09 Observing network state to show loading 2022-12-07 08:55:04 +04:00
Ilya Yelagov a2dd1a14a8 Animation and placeholder progress 2022-12-07 05:03:24 +04:00
Ilya Yelagov a688d65873 Fixing PiP transition corner radius and flickering 2022-12-07 01:12:13 +04:00
Ilya Yelagov 96876f1611 Implementing sheet full expansion 2022-12-06 23:44:06 +04:00