Commit graph

280 commits

Author SHA1 Message Date
isaac
ab7fc69e16 Merge commit '93244da737' 2026-05-05 00:45:32 +02:00
isaac
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
Mikhail Filimonov
93244da737 macos 2026-05-02 11:56:45 +01:00
isaac
2edd2ffea7 Update instructions and fix build 2026-05-01 00:49:47 +02:00
Isaac
99430812c1 Stories 2025-11-06 23:16:55 +04:00
Isaac
11ed074079 Stories 2025-11-05 22:36:17 +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
Isaac
114401f62b Various improvements 2025-08-22 15:31:31 +02:00
Isaac
7512f7f017 Cleanup 2025-06-28 13:14:15 +02:00
Isaac
9a2215de29 Conference 2025-04-15 19:30:05 +04:00
Isaac
e6fc58d797 Fix build 2025-04-04 22:21:56 +04:00
Mikhail Filimonov
b0c637bfff macos related changes 2025-04-04 16:58:42 +04:00
Mikhail Filimonov
9052f0d32e Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios 2025-04-04 12:03:00 +04:00
Isaac
e03a9d818e Conference updates 2025-04-04 11:16:34 +04:00
Mikhail Filimonov
d49a85b35a Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios 2025-04-03 18:45:57 +04:00
Mikhail Filimonov
0cf707f2c7 macos changes 2025-04-03 18:45:49 +04:00
Isaac
5fa86c6a33 Conference updates 2025-04-03 17:39:24 +04:00
Mikhail Filimonov
b78817526e Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios 2025-04-03 08:52:07 +04:00
Isaac
5deca3fac7 Add peerId 2025-04-02 20:39:51 +04:00
Mikhail Filimonov
7e550200aa macos related changes. 2025-04-01 12:02:45 +04:00
Isaac
aaf52d4282 Conference calls 2025-03-30 02:06:50 +04:00
Isaac
17dd059f13 [WIP] Conference 2025-03-19 18:55:24 +01:00
Isaac
92a6a73f6f Call updates 2025-02-25 14:43:41 +00:00
Mikhail Filimonov
39e8c7bb2e macos and other stuff 2025-02-17 12:41:04 +02:00
Isaac
1f517e187a [WIP] Conference calls 2025-02-11 18:46:59 +04:00
Isaac
3e74304640 [WIP] Conference calls 2025-02-06 21:12:05 +04:00
Isaac
ded946411c Merge branch 'beta'
# Conflicts:
#	submodules/TelegramCallsUI/Sources/PresentationGroupCall.swift
#	submodules/TelegramVoip/Sources/GroupCallContext.swift
#	versions.json
2025-01-24 21:05:37 +04:00
Isaac
8a0643eb53 Merge commit '2af174f570' 2025-01-21 11:04:41 +04:00
Isaac
a4717b7906 [WIP] Conference 2025-01-21 11:04:37 +04:00
Mikhail Filimonov
0794a1cdb9 Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios
# Conflicts:
#	submodules/MediaPlayer/Sources/FFMpegFileReader.swift
2025-01-16 11:30:14 +01:00
Isaac
789614e24d Backport fixes 2025-01-14 12:32:53 +08:00
Isaac
22980d7c9a [Temp] 2025-01-14 11:52:31 +08:00
Mikhail Filimonov
479cd3b55f Merge branch 'macos-release-11.6' 2025-01-06 17:59:25 +04:00
Mikhail Filimonov
0433c17ab3 Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios 2025-01-06 17:59:21 +04:00
Mikhail Filimonov
a65a72cf33 macos related changes 2025-01-02 08:41:51 +04:00
Mikhail Filimonov
9d148597cb macos related changes 2025-01-02 08:26:57 +04:00
Mikhail Filimonov
91a7d728e3 macos related changes 2025-01-02 07:51:34 +04:00
Isaac
ad0188f0ed [WIP] Livestream V2 2024-12-31 14:03:02 +08:00
Isaac
d53dcf1ea2 Add more data to jitsi calls 2024-12-27 22:41:53 +08:00
Ilya Laktyushin
5451053195 Various improvements 2024-12-22 17:16:14 +04:00
Mikhail Filimonov
3095400114 macos related changes 2024-12-19 14:58:12 +04:00
Isaac
abdfc238f8 [WIP] Conference calls 2024-12-14 01:16:30 +08:00
Isaac
7e9b1fcc40 [WIP] Conference calls 2024-12-10 22:17:36 +08:00
Mikhail Filimonov
4440cf72d1 - macos related changes 2024-11-27 17:28:22 +04:00
Isaac
d33e03b64c Call improvements 2024-11-19 18:49:25 +04:00
Isaac
69bb337f6f Experimental hls implementation 2024-09-27 20:27:11 +08:00
Isaac
af267cae64 Video player and calls 2024-09-20 22:33:36 +08:00
Isaac
923587b0da [WIP] Dynamic video streaming 2024-09-18 01:04:29 +08:00
Isaac
67ded11399 [WIP] Video chats v2 2024-08-30 22:26:59 +08:00