isaacand isaac
4107263747
Postbox refactor waves 358-426
...
Squashed range bf01b4c..a66739c (70 commits) covering 69 waves of the
Postbox -> TelegramEngine consumer migration plus a few BUILD-dep
followups.
Notable additions to TelegramCore in this range:
- Engine typealiases: EngineRawPeerPresence, EngineRawValueBoxKey,
EngineSimpleDictionary, EngineRawPeerView, EngineRawPostboxViewKey,
EngineRawPreferencesView, EngineRawMessageHistoryView (+ entry/attrs/
read-state), EngineMessageIdNamespaces, EngineHistoryViewInputAnchor,
EngineRawUnreadMessageCountsItem, EngineRawMessageHistorySavedMessages
IndexView, EngineRawChatInterfaceStateView, EngineRawOrderedItemList
View, EngineRawMessageHistoryThreadIndexView, EngineRawCombinedRead
StateView, EngineRawMessageHistoryThreadInfoView, EngineRawBasicPeer
View, EngineRawCachedPeerDataView, EngineMessageHistoryThreadData,
EngineViewUpdateType, EngineInitialMessageHistoryData,
EnginePeerGroupId, EngineChatLocationInput, EngineHistoryViewInputTag.
- Engine data items: Peer.CachedData, ItemCollections.InstalledPackInfos,
ItemCollections.InstalledPackIds.
- Engine facade: TelegramEngine.ItemCollections.allItems(namespace:).
- Free function: engineAreMediaArraysEqual forwarder.
Net effect: 65+ consumer modules drop "import Postbox"; 131 files
changed (+1386 / -1493). Build green at HEAD.
2026-05-07 07:36:30 +02:00
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
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
e3bf0cd30c
Various fixes
2026-04-23 01:26:13 +02:00
isaacand isaac
524c29cbe3
Various improvements
2026-04-22 00:32:34 +04:00
isaacand isaac
3716f59e7d
Cleanup
2026-04-20 18:55:27 +02:00
684796144c
TextProcessing: style create/edit/delete, AI previews, and integration
...
Wires up TextProcessingScreen to the edit/delete AI text style facades,
renders AI text style webpage previews in chat bubbles, and exposes a
shared makeEmojiStatusSelectionController on SharedAccountContext so
the screen can present the emoji picker when assigning a style emoji.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com >
2026-04-19 23:45:18 +02:00
Ilya Laktyushin
0df319742a
Update API
2026-04-16 01:18:22 +02:00
Isaacand Isaac
41d6f727e0
Various improvements
2026-04-10 17:21:36 +02:00
Ilya Laktyushin
7d65064f9b
Various improvements
2026-02-25 04:38:32 +04:00
Ilya Laktyushin
5d50aa34af
Various improvements
2026-02-23 21:25:25 +04:00
Isaacand Isaac
0f5a019f04
Glass updates
2026-01-11 21:01:45 +04:00
Isaacand Isaac
4a13c3830a
Glass
2025-12-26 20:29:30 +08:00
Isaacand Isaac
6758fa57cc
Adjust avatar inset
2025-10-11 01:07:26 +08:00
Isaacand Isaac
b9b38e5fbf
Various improvements
2025-10-11 00:56:21 +08:00
Isaacand Isaac
70be4f840f
Update localization
2025-10-02 00:48:42 +08:00
Isaacand Isaac
7ed1261193
Various improvements
2025-09-23 21:59:54 +08:00
Isaacand Isaac
ee749050f0
Bot forums
2025-08-19 17:24:33 +02:00
Isaacand Isaac
b4a0e8809c
Temp
2025-08-15 09:18:26 +02:00
Isaacand Isaac
06eaf81fa9
[WIP] Post suggestion
2025-06-17 13:55:44 +04:00
Isaacand Isaac
1cbc239dc0
Monoforums
2025-06-04 23:38:44 +08:00
Isaacand Isaac
7b72c1a034
Monoforums
2025-05-29 00:23:43 +08:00
Isaacand Isaac
db34a7c175
Monoforums
2025-05-28 17:05:37 +08:00
Isaacand Isaac
8d65fb3495
Monoforums
2025-05-27 23:37:35 +08:00
Isaacand Isaac
2a3e3ad4ba
Monoforums
2025-05-24 00:05:48 +08:00
Isaacand Isaac
9633013275
Monoforums
2025-05-23 15:56:01 +08:00
Isaacand Isaac
56532e3ab8
Monoforums
2025-05-22 19:39:52 +08:00
Isaacand Isaac
f1d0f694f5
[WIP] Monoforums
2025-05-21 00:23:48 +08:00
Isaacand Isaac
09c49d47d9
[WIP] Monoforums
2025-05-16 21:03:00 +08:00
Isaacand Isaac
f90402102b
[WIP] Monoforums
2025-05-14 00:50:46 +08:00
Isaacand Isaac
140efd6cfd
[WIP] Monoforums
2025-05-10 18:02:55 +01:00
Isaacand Isaac
0e119dd6f1
[WIP] Monoforums
2025-05-08 20:56:55 +01:00
Isaacand Isaac
603d5754db
[WIP] Post suggestions
2025-04-23 12:18:56 +04:00
Isaacand Isaac
faa765b601
Various optimizations
2025-03-04 14:13:07 +01:00
Ilya Laktyushin
8d7f9bf372
Various improvements
2025-02-22 19:17:36 +04:00
Ilya Laktyushin
d167aa4b0e
Update API [skip ci]
2025-02-18 10:09:58 +04:00
Ilya Laktyushin
6e850130fd
Update API [skip ci]
2024-12-26 07:27:14 +04:00
Ilya Laktyushin
dce651616e
Update API [skip ci]
2024-12-18 21:40:23 +04:00
Isaacand Isaac
caf10fe889
Various improvements
2024-10-25 11:24:06 +02:00
Ilya Laktyushin
ab6d94b4eb
Codes improvements
2024-09-21 02:24:36 +04:00
Ilya Laktyushin
987befccc4
Ads and codes improvements
2024-09-19 17:47:49 +04:00
Isaacand Isaac
923587b0da
[WIP] Dynamic video streaming
2024-09-18 01:04:29 +08:00
Ilya Laktyushin
d761d9314c
Various improvements
2024-09-01 10:32:03 +04:00
Isaacand Isaac
d8d7264772
Various improvements
2024-08-14 23:52:04 +08:00
Isaacand Isaac
03ee1379b2
Adjust stars animation
2024-08-12 12:20:02 +04:00
Isaacand Isaac
6e13876636
Star reactions
2024-08-09 16:55:53 +04:00
Isaacand Isaac
289273dcd9
Update API [skip ci]
2024-08-08 14:15:32 +04:00
Isaacand Isaac
3ff98fd2a8
[WIP] Star reactions
2024-08-06 15:00:29 +04:00
Ilya Laktyushin
3e448e833e
Story covers
2024-07-19 17:43:17 +04:00
Isaacand Isaac
a4b4bb5a82
[WIP] Bot previews
2024-07-16 19:12:26 +08:00