53 Commits
Author SHA1 Message Date
Ilya Laktyushin 7a7333edab Various improvements 2026-05-05 14:57:06 +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
Isaac f34db983e0 Various improvements 2026-03-28 00:11:41 +08:00
Isaac a0a2f9f6bf Various improvements 2026-03-24 16:47:36 +08:00
Isaac 40e1e6a116 Improvements 2026-03-20 19:17:11 +01:00
Isaac bc7858ad2b AI editing 2026-03-20 18:23:45 +01:00
Isaac cd436e8210 Glass 2025-12-01 22:13:33 +08:00
Ilya Laktyushin 0bac271cdb [WIP] Saved music 2025-08-21 09:08:35 +04:00
Ilya Laktyushin 91eb2ac8bd Various fixes 2025-06-11 21:56:00 +02:00
Isaac 417908a179 Merge commit '6c337b0f8473092b0eb5b23bdbc69286c1f81ac4' 2025-05-22 02:29:25 +08:00
Isaac 4c3ad04015 Refactor chat controller data management 2025-05-22 02:29:14 +08:00
Ilya Laktyushin 81e11d6d36 Various improvements 2025-05-20 22:30:48 +02:00
Isaac 0e119dd6f1 [WIP] Monoforums 2025-05-08 20:56:55 +01:00
Ilya Laktyushin 5ee53ad996 Various fixes 2025-03-12 00:40:11 +04:00
Ilya Laktyushin 8d7f9bf372 Various improvements 2025-02-22 19:17:36 +04:00
Ilya Laktyushin 2f2a27f0d2 Various improvements [skip ci] 2025-02-12 22:15:02 +04:00
Ilya Laktyushin b0511f146e Various improvements 2025-01-10 05:15:00 +04:00
Isaac 09e025e985 [WIP] Channel appearance 2023-12-15 22:59:33 +04:00
Ilya Laktyushin ef96be345c Various fixes 2023-02-18 00:51:36 +04:00
Ilya Laktyushin 01378dcb7e Various fixes 2023-01-27 14:54:40 +04:00
Ilya Laktyushin ad0fe38ba7 Various improvements 2023-01-23 15:48:57 +04:00
Ilya Laktyushin 415182b4d2 Cherry-pick various improvements 2023-01-08 01:37:02 +04:00
Ali 79215dc012 [WIP] Topics 2022-10-23 19:34:10 +04:00
Ali 93a7f7ece8 [WIP] Topics 2022-10-23 18:03:26 +04:00
Ali 99396ec7d4 [WIP] Topics 2022-10-20 20:57:11 +04:00
Ali e6de19ca14 [WIP] Topics 2022-10-14 16:36:00 +04:00
Ali ff22c7e981 [WIP] General UI improvements 2022-09-16 22:59:16 +04:00
Ali 7020c5ed05 Status and reaction improvements 2022-09-05 03:57:37 +04:00
Ilya Laktyushin 9994bb44ad Further attach menu refinements 2022-02-13 04:11:04 +03:00
Ilya Laktyushin d01eeb93a9 Various Improvements 2021-11-26 18:39:29 +04:00
Ilya Laktyushin 48cc049d7b Update API 2021-11-22 21:56:34 +04:00
Ilya Laktyushin 3a42a30454 Various Improvements 2021-11-19 20:42:44 +04:00
Ilya Laktyushin 15b708791d Update API 2021-11-19 18:32:05 +04:00
Ali 6e5c503338 Refactoring 2021-09-20 14:51:46 +03:00
Ali 1a04fb4408 Refactor SyncCore back into TelegramCore 2021-07-21 21:43:20 +02:00
Ali 7bed1728bb Refactor string generation 2021-07-20 11:57:50 +02:00
Ali 3a40025624 Fix report peer title panel 2021-06-12 22:50:15 +04:00
Ali 8afea63b53 Fix service background selection 2021-06-11 12:17:27 +04:00
Ali 918b069431 UI bug fixes 2021-05-15 01:20:26 +04:00
Ali 6854173dae Wallpaper updates 2021-05-11 23:31:03 +04:00
Ali a5f4d23489 UI combo update 2021-05-07 18:10:31 +04:00
Ilya Laktyushin ad2678645d Various fixes 2021-02-11 22:51:56 +04:00
Ali 2c7c8155ab Merge commit '9a2253d7fd36f396b9d16b23a7727e06e59e49f0' 2021-01-22 17:40:52 +04:00
Ali 38af188ce2 [WIP] Chat Import 2021-01-22 17:22:50 +04:00
Ilya Laktyushin c7e1d3762f Invite Links Improvements 2021-01-22 15:54:06 +03:00
Ali 48c7c19537 Assorted fixes 2020-10-25 22:28:23 +04:00
Ali ee3322247c Make panel look bolder 2020-07-10 23:12:16 +04:00
Ali 401e4798fa Support autoarchive for groups and channels 2020-07-06 16:35:35 +04:00
Ali 84babc02b0 Unarchive 2020-06-26 21:04:37 +04:00
Ilya Laktyushin 4fadec2ff3 Video avatar fixes 2020-06-25 18:20:36 +03:00