437 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
Ilya Laktyushin 96b1432434 Various improvements 2026-04-24 04:55:22 +02:00
isaacandClaude Opus 4.7 4879d89a92 Postbox -> TelegramEngine wave 22: storeResourceData facade + consumer sweep
Same shape as wave 21. Adds TelegramEngine.Resources.storeResourceData(id:, data:, synchronous:)
and sweeps 46 context.account.postbox.mediaBox.storeResourceData sites across 17 files.

The range-store overload and accountManager.mediaBox sites are explicitly out of scope.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-21 03:51:11 +04:00
isaacandClaude Opus 4.7 53f023ea52 Postbox -> TelegramEngine wave 21: completedResourcePath facade + consumer sweep
Combined wave-19+wave-20 shape. Adds TelegramEngine.Resources.completedResourcePath(id:, pathExtension:)
facade and sweeps 29 consumer sites across 14 files in one atomic commit.

Shape A/B migrated. Shape C (5 sites with raw account: Account) and Shape D
(3 sites with local postbox: Postbox field) intentionally skipped — need
module-scoped init-signature rework rather than per-site sweep.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-21 03:19:30 +04:00
IsaacandClaude Opus 4.7 b989b160c0 Postbox -> TelegramEngine wave 4: TelegramEngine.Stickers.uploadSticker
Migrates uploadSticker's public surface from (peer: Peer,
resource: MediaResource, thumbnail: MediaResource?, ...) to
(peer: EnginePeer, resource: EngineMediaResource,
thumbnail: EngineMediaResource?, ...), and UploadStickerStatus.complete
payload from CloudDocumentMediaResource to EngineMediaResource. Both
external call sites plus the cascading destructure and .standalone
sites inside MediaEditorScreen migrated atomically.

Bundled: spec + fix + plan + C1 atomic facade migration + CLAUDE.md
outcome + enum-payload inventory lesson added to wave-selection
guidance.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-19 23:45:48 +02:00
IsaacandClaude Opus 4.7 4ae15b42a7 Postbox -> TelegramEngine wave 3: MediaBox fetch/status/data facades + SaveToCameraRoll
Adds three thin forwarding methods on TelegramEngine.Resources
(fetch, status, data) over MediaBox, then migrates SaveToCameraRoll's
three public functions to use them, drops import Postbox from the
module (source + Bazel dep), and updates all 23 call sites across 14
caller files atomically.

Bundled: spec + fix + plan + C1 facades + C2 SaveToCameraRoll rewrite
+ BUILD dep drop + CLAUDE.md outcome.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-19 23:45:34 +02:00
Ilya Laktyushin 21adc7d061 Various improvements 2026-03-30 02:55:35 +02:00
Ilya Laktyushin f3c18e1436 Various improvements 2026-03-29 22:18:19 +02:00
Ilya Laktyushin dca6b5f145 Various improvements 2026-03-12 13:51:27 +01:00
Ilya Laktyushin b1aa62e9cc Various fixes 2026-03-03 20:26:45 +04:00
Ilya Laktyushin ad0f639fb5 Various fixes 2026-03-02 18:26:12 +04:00
Ilya Laktyushin b9ba7336bb Various fixes 2026-02-27 15:24:38 +04:00
Ilya Laktyushin e3c84fce71 Various fixes 2026-02-27 14:34:18 +04:00
Ilya Laktyushin 8def1683b9 Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios 2026-02-21 13:45:36 +04:00
Ilya Laktyushin d9d1210c1d Various improvements 2026-02-19 21:53:26 +04:00
Ilya Laktyushin 96bb624b2d Merge branch 'formatted-date-api' 2026-02-06 14:25:09 +04:00
Ilya Laktyushin 142d59cf8f Various improvements 2026-01-27 22:24:31 +04:00
Isaac ca6fdc1629 Glass 2026-01-25 00:31:18 +08:00
Ilya Laktyushin ea9d8db1d3 Update API [skip ci] 2026-01-20 14:54:15 +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
Isaac 42f10b4fed Merge branch 'master' into glass-26 2025-12-02 17:30:38 +08:00
Ilya Laktyushin 6bc1fe1939 Various improvements 2025-12-01 19:54:58 +04:00
Isaac cd436e8210 Glass 2025-12-01 22:13:33 +08:00
Ilya Laktyushin 9527b2d8be Various improvements 2025-11-13 07:18:15 +04:00
Ilya Laktyushin 0915a42e64 Various improvements 2025-10-16 05:30:06 +04:00
Isaac f468cea13c Update API 2025-10-15 17:06:40 +08:00
Isaac a7385ad068 Update 2025-09-30 17:41:32 +08:00
Ilya Laktyushin 737f84bb13 Various fixes 2025-09-25 21:47:46 +04:00
Ilya Laktyushin 4b8d87b05f Merge commit '202274073fa5df7a5fbaa4621e3da054a1a0284b' into call-messages 2025-09-17 22:05:40 +04:00
Ilya Laktyushin cb523192d5 Various improvements 2025-09-17 20:58:42 +04:00
Isaac 0678d0ded0 Merge branch 'master' into glass
# Conflicts:
#	Telegram/Telegram-iOS/en.lproj/Localizable.strings
#	submodules/TelegramCallsUI/Sources/PresentationGroupCall.swift
#	submodules/TelegramCore/Sources/ApiUtils/TelegramMediaAction.swift
#	submodules/TelegramCore/Sources/TelegramEngine/Calls/GroupCalls.swift
#	submodules/TelegramCore/Sources/TelegramEngine/Payments/StarGifts.swift
2025-09-16 10:14:07 +04:00
Isaac 5a8bd1d98d Temp 2025-09-16 10:11:54 +04:00
Isaac ebcd0557e5 Temp 2025-09-12 10:54:22 +02:00
Ilya Laktyushin 76e8d79f9f Update API 2025-09-06 13:35:19 +05:00
Ilya Laktyushin 9146a42cfa Various improvements 2025-08-08 19:23:59 +04:00
Isaac b20652120e Merge branch 'story-folders'
# Conflicts:
#	submodules/TelegramCore/Sources/TelegramEngine/Messages/Stories.swift
2025-07-25 15:21:33 +02:00
Ilya Laktyushin 6617a0c45f Update API 2025-07-24 13:15:15 +02:00
Isaac bc49c5e788 Update 2025-07-22 17:24:33 +02:00
Ilya Laktyushin 81e11d6d36 Various improvements 2025-05-20 22:30:48 +02:00
Ilya Laktyushin ee38ee55d4 Various fixes 2025-05-05 18:42:51 +04:00
Ilya Laktyushin 9e0600edfa Various fixes 2025-04-25 18:13:30 +04:00
Ilya Laktyushin 1ed853e255 Various fixes 2025-04-25 14:33:25 +04:00
Ilya Laktyushin 9483448aa3 Update API 2025-04-24 17:53:39 +04:00
Ilya Laktyushin d5139b6363 Various fixes 2025-04-24 15:06:21 +04:00
Ilya Laktyushin 999f8c8032 Various fixes 2025-04-24 14:49:17 +04:00
Ilya Laktyushin 2962851527 Various improvements 2025-04-22 21:06:46 +04:00
Ilya Laktyushin a8c7b217a4 Various improvements 2025-04-21 17:02:37 +04:00