Commit graph

27 commits

Author SHA1 Message Date
isaac
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
Isaac
0e119dd6f1 [WIP] Monoforums 2025-05-08 20:56:55 +01:00
Ali
62765b241d Memory management issues 2023-09-21 00:12:53 +02:00
Ilya Laktyushin
6700f1af2a Various improvements 2022-11-09 16:39:28 +04:00
Ali
dfad27f9e8 Refactoring 2022-05-29 21:09:11 +04:00
Ali
96b6864a51 Use enableSystemIntegration in notification service extension 2021-11-16 18:00:53 +04:00
Ali
e658555ef4 Refactoring 2021-09-21 00:23:29 +03:00
Ali
1a04fb4408 Refactor SyncCore back into TelegramCore 2021-07-21 21:43:20 +02:00
Ali
7bed1728bb Refactor string generation 2021-07-20 11:57:50 +02:00
Ali
6417d8862c Display the saved messages icon in widgets 2021-02-18 23:48:41 +04:00
Ali
610f16fa82 Multiarch fixes 2021-02-17 21:00:01 +04:00
Ali
933dcc17e7 Update intents 2021-02-16 23:07:37 +04:00
Ali
c38f6502d4 Widget improvements 2021-02-16 00:17:18 +04:00
Ali
af2e1cf5d4 Rewrite the widget update code 2021-02-15 01:24:00 +04:00
Ali
a364ef1284 Auto-remove fixes 2021-02-12 16:59:50 +04:00
Ali
3880af10ae [WIP] Message auto-delete and widget 2021-02-09 22:55:41 +04:00
Ali
4cd27e7864 [WIP] Autoremove timer 2021-02-06 00:09:51 +04:00
Ali
fa3be5d99b Merge commit '4b34a6643f'
Update widget
2021-01-15 22:40:32 +04:00
Ali
03fa913557 WIP 2020-12-22 18:51:36 +04:00
Ali
08040c1598 Experimental widget settings 2020-10-30 20:58:02 +04:00
Ali
a0fa8132ea Bazel build updates 2020-10-27 16:53:29 +04:00
Ali
1c2fde8650 A better fix 2020-10-25 23:28:25 +04:00
Ali
acfb5aedb4 Fix build 2020-10-25 23:27:20 +04:00
Ali
ed7d110c94 [WIP] Fix widget data 2020-10-18 03:45:39 +04:00
Ali
517fcabed9 [WIP] iOS 14 widget 2020-10-18 03:03:13 +04:00
Ilya Laktyushin
e083dd7eff Add widget "application start required" placeholder 2020-05-06 17:05:52 +04:00
Ali
f57d6b6168 Temp 2020-02-20 18:08:36 +04:00
Renamed from submodules/TelegramUI/TelegramUI/WidgetDataContext.swift (Browse further)