52 Commits
Author SHA1 Message Date
Ilya Laktyushin 3e6363abf9 Various improvements 2026-05-28 16:50:05 +02:00
Ilya Laktyushin 91eb779ae2 Merge commit 'c64653ed37ce9fe2bc74e260e9e960fcf3ab5dc1' 2026-05-14 12:45:26 +02:00
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 dcde323740 Conference 2025-04-11 17:16:36 +04:00
Isaac 700a71f393 Update localization 2025-04-09 18:21:11 +04:00
Isaac 2393424bde Conference calls 2025-04-01 17:18:08 +04:00
Isaac 54c5314462 Update conference calls 2025-04-01 13:56:08 +04:00
Isaac 869d607c4a [WIP] Conference 2025-01-31 21:07:00 +04:00
Isaac 846e495d12 [WIP] Conference calls 2025-01-28 20:50:52 +04:00
Isaac 4fb071d91d [WIP] Conference calls 2025-01-24 21:03:51 +04:00
Isaac 40828e9037 [WIP] UI 2025-01-21 21:08:44 +04:00
Isaac a4717b7906 [WIP] Conference 2025-01-21 11:04:37 +04:00
Isaac 2b9f5ed541 [WIP] Conference calls 2024-12-18 23:35:27 +08:00
Isaac 7e9b1fcc40 [WIP] Conference calls 2024-12-10 22:17:36 +08:00
Isaac 4e964d4546 Various improvements 2024-12-06 22:15:52 +08:00
Isaac 7c0d5519bf Various improvements 2023-12-28 16:55:12 +04:00
Isaac cbcdcd6f17 Final changes 2023-12-21 01:17:07 +04:00
Isaac 3fc9d37ba7 [WIP] Call UI 2023-12-19 02:13:54 +04:00
Isaac f702380082 [WIP] Call UI 2023-12-19 01:11:40 +04:00
Isaac 820b038bbc [WIP] Call UI 2023-12-18 02:06:39 +04:00
Isaac d1e9e04dc1 [WIP] Call UI 2023-12-08 22:33:07 +04:00
Isaac 5da3442266 [WIP] Call UI 2023-12-06 00:51:21 +04:00
Ali 54327a0a74 [WIP] Call UI V2 2023-11-14 11:26:57 +04:00
Ali 13144c24f1 Remove debugging 2023-11-10 15:23:54 +04:00
Ali 857bf2190e [WIP] 2023-11-10 10:46:57 +04:00
Ali 1141e09c1b Refactoring 2021-09-07 13:09:06 +04:00
Ali 31bc746984 Fix more warnings 2021-08-05 01:42:59 +02:00
Ali 1a04fb4408 Refactor SyncCore back into TelegramCore 2021-07-21 21:43:20 +02:00
Ali 918b069431 UI bug fixes 2021-05-15 01:20:26 +04:00
Ilya Laktyushin 0d591796b7 Video Chats Improvements 2021-04-28 03:41:32 +04:00
Ali bead41710b Video call improvements 2020-08-21 21:11:29 +01:00
Ilya Laktyushin b7ef9fdb3f Various video call UI improvements 2020-08-09 19:54:50 +03:00
Ilya Laktyushin 8b1794141d Call UI improvements 2020-08-08 17:18:26 +03:00
Ilya Laktyushin 575d98dd1f Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios 2020-08-07 21:09:36 +03:00
Ilya Laktyushin 3515fee9af Video call UI improvements 2020-08-07 18:47:32 +03:00
Ali c5da0bc464 Video call improvements 2020-08-07 19:16:55 +04:00
Ali eee4036987 Video call improvements 2020-07-10 19:57:40 +04:00
Ali b311b5cf74 Video call screen improvements 2020-07-07 20:14:02 +04:00
Ali f5ca2503da Use legacy call screen when performing audio calls 2020-07-06 18:38:31 +04:00
Ali b542dc3fd7 Video improvements 2020-07-03 21:25:36 +04:00
Ali 9195ffa96b Experimental media improvements 2020-06-19 17:38:22 +04:00
Ali f093a5ae61 Add logging 2020-06-16 16:51:33 +04:00
Ali 346b8160c4 Working video calls 2020-05-11 16:30:17 +04:00
Ilya Laktyushin 1d97295f36 Fix default show calls tab value and calls tab suggestion alert 2020-01-17 12:40:45 +03:00
Ali d3091f0abe Improve Dynamic Type 2019-11-26 20:44:48 +04:00
Ilya Laktyushin 1f9cbcd537 Fix action sheet Cancel button font 2019-11-22 19:59:25 +04:00
Peter cbaf7d1ada Merge commit '77a592a05c9e599c3dcedb59c1fadc70699bd2e6' into background-task 2019-10-22 19:10:24 +04:00
Peter 10692a323e Refactor SyncCore 2019-10-21 16:58:00 +04:00
Ilya Laktyushin 4da3336dfb Various fixes 2019-10-17 15:22:44 +03:00