Ilya Laktyushin
622f9d970a
Various fixes
2026-05-31 17:35:32 +02:00
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
isaac and Claude 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 and Claude Opus 4.7
86d1456552
Postbox -> TelegramEngine waves 107-137 (squashed)
...
31 waves of consumer-side migration from `import Postbox` to TelegramEngine
typealiases. Net: 173 import drops + 39 BUILD-dep drops + 1 new typealias
(`EngineStoryId = StoryId`, wave 113).
Wave shapes used:
- Orphan-import sweeps (107, 108, 128): drop `import Postbox` from files
whose only Postbox-symbol reference was the import line itself, then
resolve build failures. Methodology requires token-level (`grep -oE`)
filtering, not line-level, to avoid masking real Postbox usage on lines
that also contain `Namespaces.X` references.
- Identifier-swap mini-waves (109-127, 129-134, 136-137): rename
Postbox-typealiased identifiers to engine equivalents
(PeerId -> EnginePeer.Id, MessageId -> EngineMessage.Id,
MediaId -> EngineMedia.Id, MessageIndex -> EngineMessage.Index,
StoryId -> EngineStoryId, ItemCollectionId -> EngineItemCollectionId,
PreferencesEntry -> EnginePreferencesEntry,
FetchResourceSourceType/Error -> EngineFetchResourceSourceType/Error,
MemoryBuffer -> EngineMemoryBuffer, MessageTags -> EngineMessage.Tags,
MessageAttribute -> EngineMessage.Attribute,
TempBox -> EngineTempBox).
- Asset-string FP-only orphans (124).
- Typealias addition + drain (113): added `EngineStoryId` typealias to
TelegramCore, then drained 3+11 consumer sites.
Hard blockers identified during these waves (must restore `import Postbox`
when present): MediaResource[A-Za-z]* (any suffix -- the literal
`MediaResource` matches don't catch MediaResourceData/MediaResourceId/etc.),
Postbox/MediaBox/MediaResource raw types, PostboxCoding/PostboxEncoder/
PostboxDecoder, TempBoxFile, ValueBoxKey, PostboxView, combinedView,
HashFunctions, postboxLog, openPostbox, declareEncodable, PeerView,
MessageHistoryView, MessageHistoryThreadData, CachedPeerData, RenderedPeer,
SelectivePrivacyPeer, SimpleDictionary, ItemCollectionInfosView,
ItemCollectionItem, ItemCollectionItemIndex, ItemCollectionViewEntryIndex,
ChatListIndex, ChatListEntrySummaryComponents, CodableEntry,
MessageHistoryThread, MessageHistoryAnchorIndex,
MessageHistoryEntryLocation, PeerStoryStats, PeerNameIndex,
PeerSummaryCounterTags, ChatListTotalUnreadStateCategory/Stats,
arePeersEqual. Protocol-shape blockers: bare `Peer`/`Message`/`Media`
in function signatures, generic args, enum-case payloads, or dict value
types (e.g., `[PeerId: Peer]`, `case messages([Message])`,
`Signal<(Peer?, ...), NoError>`).
`replace_all PeerId -> EnginePeer.Id` is dangerous: mangles compound
names like `failedPeerId`, `ContactListPeerId`, `nextRemoteMediaId`,
`replyToMessageId`. Pre-flight grep `\b[a-z][a-zA-Z]*PeerId\b` and only
replace_all if 0 matches.
Also removes unneeded design/plan docs from a separate (link-highlighting)
feature branch:
- docs/superpowers/plans/2026-05-02-link-highlighting-modern-path-fixes.md
- docs/superpowers/specs/2026-05-02-link-highlighting-modern-path-fixes-design.md
Squashed commits: 6d82c2980d..e6de5d53a3 (59 commits, including
per-wave content commits and per-wave CLAUDE.md bumps).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com >
2026-05-03 10:28:50 +02:00
Ilya Laktyushin
f41630083a
Various improvements
2026-04-24 03:16:14 +02:00
Ilya Laktyushin
dbd40fe7d3
Various improvements
2026-04-22 23:03:51 +02:00
Isaac
8edaa79eda
Merge commit '23c4d9474868a4a694a44fd11f84f914c13fb259'
2026-04-19 23:54:22 +02:00
Isaac and Claude Opus 4.7
7b2b74e79b
Postbox -> TelegramEngine wave 6: unused import Postbox batch sweep
...
First build-verified unused-import sweep: speculatively dropped
import Postbox from 782 consumer files (plain ^import Postbox$ lines,
excluding TelegramCore/Postbox/TelegramApi paths), iterated 18 full
project builds with --continueOnError, restored the import on every
file that failed to compile. 183 drops survived; 189 consumer modules
newly Postbox-free.
Bundled: spec + plan + C1 atomic batch drop + C2 CLAUDE.md outcome and
permanent methodology guidance under Wave-selection. The methodology
subsection captures the reusable playbook (--continueOnError is
essential, dependency graphs are deep so expect many iterations,
pattern-based preemptive restores accelerate convergence, and
CLAUDE.md's engine typealias cheat sheet arrows are migration targets
rather than typealiases in TelegramCore).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com >
2026-04-19 23:46:13 +02:00
Ilya Laktyushin
1fa0c7991c
Various fixes
2026-04-17 11:06:56 +02:00
Ilya Laktyushin
d0d3b064ed
Cherry-pick fixes
2026-04-01 00:59:30 +02:00
Ilya Laktyushin
b3d4c97da4
Various improvements
2026-03-30 05:09:10 +02:00
Ilya Laktyushin
ca3eacda45
Various improvements
2026-03-30 04:37:05 +02:00
Ilya Laktyushin
265b502f76
Various fixes
2026-03-28 15:55:50 +01:00
Ilya Laktyushin
c1020d12c5
Various fixes
2026-03-27 16:48:23 +01:00
Ilya Laktyushin
8a523bc1cd
Update localization
2026-03-27 02:32:43 +01:00
Ilya Laktyushin
77cc01f0d9
Various fixes
2026-03-26 13:58:50 +01:00
Ilya Laktyushin
25762d1133
Various fixes
2026-03-24 17:21:46 +01:00
Ilya Laktyushin
67f45ba06d
Various improvements
2026-03-24 06:54:30 +01:00
Ilya Laktyushin
e11c9899e6
Various fixes
2026-03-23 15:03:50 +01:00
Ilya Laktyushin
66d08c0e1b
Various improvements
2026-03-22 13:44:04 +01:00
Ilya Laktyushin
a171e30532
[WIP] Polls
2026-03-14 00:07:57 +01:00
Ilya Laktyushin
cbc5a49507
[WIP] Polls
2026-03-13 11:04:33 +01:00
Ilya Laktyushin
dca6b5f145
Various improvements
2026-03-12 13:51:27 +01:00
Isaac
9a4327116d
Refactor
2026-03-10 00:38:36 +01:00
Ilya Laktyushin
e02f0fcc9c
Fix story collage picker
2026-03-07 00:56:43 +01:00
Ilya Laktyushin
b87a202329
Various fixes
2026-02-28 00:35:08 +04:00
Ilya Laktyushin
2c4c9a9d9b
[WIP] Live photos
2026-02-20 13:28:58 +04:00
Ilya Laktyushin
d9d1210c1d
Various improvements
2026-02-19 21:53:26 +04:00
Isaac
1bb139ff32
Various improvements
2026-02-03 20:17:44 +08:00
Isaac
ca6fdc1629
Glass
2026-01-25 00:31:18 +08:00
Ilya Laktyushin
206bb40479
Update API
2026-01-22 21:21:24 +04: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
54ec998186
Various fixes
2025-12-27 21:50:29 +04:00
Isaac
586f5039f1
Merge commit '974a2f6caa45c2e901748ce6d113d741bd251a13'
...
# Conflicts:
# submodules/TelegramUI/Components/GlobalControlPanelsContext/Sources/GlobalControlPanelsContext.swift
# submodules/TelegramUI/Components/LiquidLens/Sources/LiquidLensView.swift
# submodules/TelegramUI/Components/TranslateHeaderPanelComponent/Sources/ChatTranslationPanelNode.swift
# submodules/TelegramUI/Sources/ChatControllerNode.swift
2025-12-26 20:34:31 +08:00
Isaac
4a13c3830a
Glass
2025-12-26 20:29:30 +08:00
Ilya Laktyushin
974a2f6caa
Various improvements
2025-12-26 13:34:23 +04:00
Ilya Laktyushin
2bba31bcdf
Alerts
2025-12-22 23:28:04 +04:00
Isaac
4c6b273fe1
Merge commit 'ef5b8537e02f66a33dbdace5d5e30f8d69077f5f'
...
# Conflicts:
# submodules/TelegramUI/Components/LiquidLens/Sources/LiquidLensView.swift
# submodules/TelegramUI/Components/TabBarComponent/Sources/TabBarComponent.swift
2025-12-20 03:05:26 +08:00
Isaac
3486393f99
Glass
2025-12-20 03:02:08 +08:00
Ilya Laktyushin
1a1f08de64
Various improvements
2025-12-17 14:31:54 +04:00
Ilya Laktyushin
8a8b04978d
Use system photos picker when no photos access is available
2025-12-12 02:18:52 +04:00
Isaac
0c3530d8a8
Glass
2025-12-10 00:16:36 +08:00
Isaac
0055396d4d
Update
2025-11-26 23:05:30 +08:00
Ilya Laktyushin
8897deff91
Various improvements
2025-11-04 01:04:57 +04:00
Ilya Laktyushin
4432581c77
Various improvements
2025-10-31 18:13:30 +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
Ilya Laktyushin
35c9a5d279
Various improvements
2025-10-20 00:46:26 +04:00