218 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 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
Ilya Laktyushin f41630083a Various improvements 2026-04-24 03:16:14 +02:00
Isaac 16c630b946 Refactoring 2026-04-03 15:50:39 +08:00
Ilya Laktyushin 6b6ba070c7 Update API 2026-03-26 09:26:15 +01:00
Ilya Laktyushin e279f224a1 Various improvements 2026-03-06 13:20:49 +01:00
Ilya Laktyushin aec6a54b5d Update localization 2026-02-24 19:12:54 +04:00
Ilya Laktyushin d9d1210c1d Various improvements 2026-02-19 21:53:26 +04:00
Ilya Laktyushin 189d25c32e Update API 2026-02-10 12:58:04 +04:00
Ilya Laktyushin e6b0d669e3 Bump version 2026-02-04 17:08:46 +04:00
Ilya Laktyushin b3aef93435 Various improvements 2026-02-03 21:58:41 +04:00
Ilya Laktyushin 2ba1f6183e Various fixes 2026-02-03 15:27:06 +04:00
Ilya Laktyushin bbad57434f Various fixes 2026-02-02 15:54:43 +04:00
Ilya Laktyushin 75627b036a Various improvements 2026-01-30 18:55:05 +04:00
Ilya Laktyushin f0c0f806e6 Various improvements 2026-01-30 01:45:59 +04:00
Ilya Laktyushin d07d38df25 Various improvements 2026-01-30 00:11:52 +04:00
Ilya Laktyushin 422e3e4e24 Various improvements 2026-01-29 21:37:06 +04:00
Ilya Laktyushin 4e43b0cbb2 Various improvements 2026-01-29 17:02:59 +04:00
Ilya Laktyushin 4d64ba28a5 Various improvements 2026-01-29 02:48:56 +04:00
Ilya Laktyushin 1d59f24bd8 Update API 2026-01-28 23:50:31 +04:00
Ilya Laktyushin 809958df3b Update localization 2026-01-28 22:11:45 +04:00
Ilya Laktyushin 15ca7254fb Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios 2026-01-27 22:24:42 +04:00
Ilya Laktyushin 142d59cf8f Various improvements 2026-01-27 22:24:31 +04:00
Isaac 42bf37bbc8 Feature flag 2026-01-27 22:58:16 +08:00
Ilya Laktyushin 8be8491b84 Various improvements 2026-01-26 02:16:22 +04:00
Ilya Laktyushin 0d12dd29ad Various improvements 2026-01-25 22:17:49 +04:00
Ilya Laktyushin ea9d8db1d3 Update API [skip ci] 2026-01-20 14:54:15 +04:00
Isaac 1b52877d0b Fix build 2026-01-16 21:48:09 +08:00
Mikhail Filimonov db93244583 update api (rarities, crafted) 2026-01-16 16:20:08 +04:00
Isaac 2db08cde89 Glass 2026-01-13 19:21:49 +04:00
Ilya Laktyushin d70b31f8bc Fix build 2026-01-08 19:21:29 +04:00
Ilya Laktyushin c654227b83 Various fixes 2026-01-05 15:14:19 +04:00
Ilya Laktyushin 80f4410f42 Various fixes 2026-01-01 05:22:16 +04:00
Ilya Laktyushin b04fd532da Various fixes 2025-12-31 16:51:40 +04:00
Ilya Laktyushin 0f53130216 Various improvements 2025-12-25 01:00:37 +04:00
Ilya Laktyushin f7f3b92fa7 Various improvements 2025-12-23 22:25:44 +04:00
Ilya Laktyushin 2edce5ebf2 Alerts 2025-12-22 00:19:11 +04:00
Ilya Laktyushin 1a1f08de64 Various improvements 2025-12-17 14:31:54 +04:00
Ilya Laktyushin 6a6714baef Various fixes 2025-12-11 21:32:44 +04:00
Ilya Laktyushin 95b074de14 Various fixes 2025-12-08 19:08:32 +04:00
Ilya Laktyushin 4660f67271 Update localization 2025-12-03 22:25:26 +04:00
Ilya Laktyushin 52e7a175c4 Show generic gift title and number if available 2025-12-03 18:15:27 +04:00
Ilya Laktyushin 6a09d2e4e6 Various improvements 2025-12-03 17:59:09 +04:00
Ilya Laktyushin 5046aab8ff Update API 2025-12-02 12:36:05 +04:00
Ilya Laktyushin 6bc1fe1939 Various improvements 2025-12-01 19:54:58 +04:00
Ilya Laktyushin b04eee8289 Update API [skip ci] 2025-11-27 19:55:24 +04:00
Ilya Laktyushin 1496c81082 Various improvements 2025-11-23 11:04:16 +01:00
Ilya Laktyushin 29fb65d33d Various improvements 2025-11-15 02:33:37 +04:00
Ilya Laktyushin f91fbff773 Various fixes 2025-11-14 12:47:55 +04:00
Ilya Laktyushin e9a3e599a1 Various improvements 2025-11-13 15:16:41 +04:00