105 Commits
Author SHA1 Message Date
isaacandClaude Opus 4.7 e918b353ec Postbox refactor waves 278-356: squash
Squashes 79 sequential refactor waves into a single commit.

Highlights:
- Drop `import Postbox` (and matching `//submodules/Postbox` BUILD deps) from a wide swath of consumer files: ChatList, ChatMessage*BubbleContentNode subclasses, ListMessageNode/ListMessageItem, GalleryData, ChatHistorySearchContainerNode, ChatPanelInterfaceInteraction, ChatControllerInteraction, ChatMessageStickerItemNode, ChatMessageReplyInfoNode, ChatMessageInstantVideoItemNode, ChatPresentationInterfaceState, BrowserMarkdown/Readability, MediaResources, LocalMediaResources, ICloudResources, FetchManager, ShareController, OpenChatMessage, GalleryController, GroupStickerSearchContainerNode, GroupStickerPackCurrentItem, ChatPinnedMessageTitlePanelNode, OverlayAudioPlayerController, PresentationThemeSettings, StatisticsUI/StoryIconNode, TextFormat/StringWithAppliedEntities, GalleryUI/VideoAdComponent, StickerPackPreviewUI, WallpaperPreviewMedia, WallpaperResources, YoutubeEmbedImplementation, InstantPageExternalMediaResource, PlatformRestrictionMatching, TelegramUIDeclareEncodables, ChatListNode/ChatListSearchContainerNode.
- Add `TelegramEngine` facades: `Themes.wallpapers`, `Themes.themes`, `AccountData.addAppLogEvent`.
- Add `EngineMessageHistoryEntryLocation` wrapper.
- Add `EngineRaw*` escape-hatch typealiases (`EngineRawMessage`, `EngineRawPeer`, `EngineRawMedia`, `EngineRawMediaResource`, `EngineRawMediaResourceData`, `EngineRawItemCollectionItem`, `EngineRawItemCollectionInfo`) and `engineDeclareEncodable` forwarder.
- Drop unused `account:`/`postbox:`/`network:` parameters from several public functions and delete the dead overloads/types/functions left over: `automaticThemeShouldSwitchNow`, `cancelFreeMediaFileInteractiveFetch`, `legacyEnqueueVideoMessage`, `TelegramMediaFileReference`, plus assorted dead public TelegramCore/AccountContext SecureId entry points.
- Delete entire dead modules: `LegacyDataImport`, `TonBinding`, `SpotlightSupport`, `SvgRendering`, third-party `AppCenter`/`VectorPlus`/`SwiftColor`/`SwiftSVG`.
- Drop orphan `//submodules/Postbox` BUILD deps across 3 cleanup rounds.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-05 14:11:06 +02:00
isaacandClaude 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 96b1432434 Various improvements 2026-04-24 04:55:22 +02:00
Ilya Laktyushin 22df2dbdb9 Various fixes 2026-04-14 03:33:34 +02:00
Ilya Laktyushin 433237d1e9 [WIP] Polls 2026-03-20 10:15:00 +01:00
Ilya Laktyushin d9d1210c1d Various improvements 2026-02-19 21:53:26 +04:00
Ilya Laktyushin 4d64ba28a5 Various improvements 2026-01-29 02:48:56 +04:00
Isaac ca6fdc1629 Glass 2026-01-25 00:31:18 +08:00
Ilya Laktyushin b04fd532da Various fixes 2025-12-31 16:51:40 +04:00
Ilya Laktyushin 974a2f6caa Various improvements 2025-12-26 13:34:23 +04:00
Isaac 3982aa3f9e Merge commit '10a429b9440b5b052c0ef08c699fb122b4f962f7' into experimental-3 2025-12-10 00:17:02 +08:00
Isaac 0c3530d8a8 Glass 2025-12-10 00:16:36 +08:00
Ilya Laktyushin 13a2fdf5c8 Various fixes 2025-12-06 01:43:15 +04:00
Isaac 1969b1b280 Merge commit '6db50776429d5a678b7dbbc72f090d3d72302272' into experimental-3 2025-12-05 14:35:56 +08:00
Ilya Laktyushin 2cb0c7f147 Various improvements 2025-12-04 07:56:44 +04:00
Ilya Laktyushin ecb12a784e Various improvements 2025-12-02 19:22:06 +04:00
Isaac 42f10b4fed Merge branch 'master' into glass-26 2025-12-02 17:30:38 +08:00
Ilya Laktyushin 5046aab8ff Update API 2025-12-02 12:36:05 +04:00
Isaac cd436e8210 Glass 2025-12-01 22:13:33 +08:00
Ilya Laktyushin 8a46bdffce Various improvements 2025-11-17 21:49:36 +04:00
Ilya Laktyushin 74b761c53f Various improvements 2025-11-16 01:22:06 +04:00
Ilya Laktyushin 3a4031b5c5 Various fixes 2025-11-15 22:31:03 +04:00
Ilya Laktyushin a443df81dd Various improvements 2025-11-15 02:12:21 +04:00
Ilya Laktyushin f91fbff773 Various fixes 2025-11-14 12:47:55 +04:00
Ilya Laktyushin 5e17b321f8 Various improvements 2025-11-13 22:06:24 +04:00
Ilya Laktyushin ea8dc07b23 Update API 2025-11-10 18:58:38 +04:00
Ilya Laktyushin b76c6c9b3c Update API 2025-11-08 23:17:00 +04:00
Ilya Laktyushin b559663d6a Various improvements 2025-11-06 13:55:58 +04:00
Ilya Laktyushin 2b2937a2eb Update API 2025-11-04 17:11:50 +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
Isaac e44bd4d858 Story updates 2025-10-21 18:28:45 +04:00
Ilya Laktyushin 0915a42e64 Various improvements 2025-10-16 05:30:06 +04:00
Ilya Laktyushin fb7b93fbdc Various improvements 2025-09-22 07:45:25 +04:00
Isaac 4f0b8a8bb4 Fix swift compiler crash 2025-09-18 14:16:02 +04:00
Ilya Laktyushin 9d97a62195 Update localization 2025-09-09 22:12:19 +04:00
Ilya Laktyushin 94ee23649d Various improvements 2025-09-09 20:39:17 +04:00
Ilya Laktyushin 76e8d79f9f Update API 2025-09-06 13:35:19 +05:00
Ilya Laktyushin 59239ca2df Update API 2025-09-05 15:10:45 +05:00
Ilya Laktyushin 3f9820f2ef Various fixes 2025-09-03 21:37:47 +05:00
Ilya Laktyushin 7b3cf92720 Various fixes 2025-09-01 03:30:20 +04:00
Ilya Laktyushin a60a437206 Various improvements 2025-08-22 21:46:07 +04:00
Ilya Laktyushin 72c58813a8 Various improvements 2025-08-01 23:25:24 +02:00
Ilya Laktyushin c825438b72 Various improvements 2025-07-20 19:49:14 +02:00
Ilya Laktyushin 72c466ca13 Various improvements 2025-07-02 22:03:34 +02:00
Isaac c7a2fe5d3e Update to iOS 13 2025-06-11 16:59:53 +08:00
Ilya Laktyushin 81e11d6d36 Various improvements 2025-05-20 22:30:48 +02:00
Ilya Laktyushin c04e8f3c11 Various fixes 2025-05-03 05:54:09 +04:00
Ilya Laktyushin c4731d8b8d Various improvements 2025-04-24 21:12:40 +04:00
Ilya Laktyushin 2962851527 Various improvements 2025-04-22 21:06:46 +04:00