Commit graph

143 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
1ae854e2e9 Merge commit '73d25e7be3' 2026-04-28 17:00:21 +04:00
isaac
027ac77ad7 Various improvements 2026-04-28 16:58:04 +04:00
Ilya Laktyushin
73d25e7be3 Various improvements 2026-04-28 14:31:17 +02:00
Ilya Laktyushin
9c15b8c27d Various improvements 2026-04-25 17:32:26 +02:00
Ilya Laktyushin
96b1432434 Various improvements 2026-04-24 04:55:22 +02:00
Ilya Laktyushin
dbd40fe7d3 Various improvements 2026-04-22 23:03:51 +02:00
Ilya Laktyushin
1670677a92 Various fixes 2026-04-19 21:48:47 +02:00
Ilya Laktyushin
b138b9f549 Stickers & emoji search pagination 2026-04-19 18:32:40 +02:00
Ilya Laktyushin
1fa0c7991c Various fixes 2026-04-17 11:06:56 +02:00
Ilya Laktyushin
8f1e024aef Various fixes 2026-04-15 23:12:53 +02:00
Isaac
9338361543 fix: correct Swift-ObjC bridging in subcodec animation modules
Fix compilation errors in SubcodecAnimationCacheImpl and
SubcodecMultiAnimationRendererImpl: NSData->Data sink closure types,
withSink->sink argument labels for advanceFrame/emitFrameIfNeeded,
unused variable warning, and redundant Void return assignment.
Add both modules as deps to ChatEntityKeyboardInputNode to verify
they compile in the full build.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-07 12:35:54 +02:00
Isaac
34477605b1 Various improvements 2026-03-31 20:24:24 +08:00
Ilya Laktyushin
f12fb93a3e [WIP] Polls 2026-03-20 14:52:19 +01:00
Ilya Laktyushin
aec6a54b5d Update localization 2026-02-24 19:12:54 +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
Isaac
ca6fdc1629 Glass 2026-01-25 00:31:18 +08:00
Isaac
2db08cde89 Glass 2026-01-13 19:21:49 +04:00
Ilya Laktyushin
28d4e1e171 Various improvements 2025-12-16 20:05:44 +04:00
Isaac
cd436e8210 Glass 2025-12-01 22:13:33 +08:00
Isaac
a7385ad068 Update 2025-09-30 17:41:32 +08:00
Isaac
5a8bd1d98d Temp 2025-09-16 10:11:54 +04:00
Isaac
4337026fba Glass 2025-09-01 18:44:03 +02:00
Isaac
140efd6cfd [WIP] Monoforums 2025-05-10 18:02:55 +01:00
Isaac
603d5754db [WIP] Post suggestions 2025-04-23 12:18:56 +04:00
Ilya Laktyushin
5956d5142f Various improvements 2025-03-21 18:41:49 +04:00
Ilya Laktyushin
fed338985d Various improvements 2025-03-14 13:35:44 +04:00
Isaac
faa765b601 Various optimizations 2025-03-04 14:13:07 +01:00
Ilya Laktyushin
e351bbfd42 Various fixes 2025-03-01 19:38:31 +04:00
Isaac
894e0e4705 Various improvements 2025-02-27 12:23:14 +01:00
Isaac
866a173d7a Merge commit 'fe81be7931' 2025-02-14 19:12:03 +04:00
Isaac
6c4070eb52 Serialization update 2025-02-14 19:11:58 +04:00
Ilya Laktyushin
fe81be7931 Various fixes 2025-02-14 05:10:07 +04:00
Ilya Laktyushin
4ffb0e697e Update API 2025-01-18 21:28:00 +04:00
Ilya Laktyushin
5451053195 Various improvements 2024-12-22 17:16:14 +04:00
Ilya Laktyushin
c4013c3df6 Various improvements 2024-11-29 00:28:50 +04:00
Ilya Laktyushin
856aeb6781 Various fixes 2024-09-27 16:58:49 +04:00
Ilya Laktyushin
23fa85770d Various fixes 2024-09-26 20:38:11 +04:00
Ilya Laktyushin
b5b052ff7d Paid media improvements 2024-06-22 00:05:21 +04:00
Isaac
9a075fa39e Refactoring 2024-06-12 23:04:04 +04:00
Ilya Laktyushin
464eb8625f Hashtag search improvements 2024-05-22 14:04:37 +04:00
Ilya Laktyushin
2b6a8e202e Various fixes 2024-04-30 12:58:20 +04:00
Isaac
8e043a3a7d Various improvements 2024-04-23 12:57:38 +04:00
Isaac
e2a3decea3 Various improvements 2024-04-19 17:16:12 +04:00
Isaac
e938cecd37 Fix emoji input background 2024-04-19 13:30:06 +04:00
Isaac
5123b841c3 - custom poll emoji input
- avatars in forward info
- ban user sheet
2024-04-16 23:42:39 +04:00
Ilya Laktyushin
a4accf138a [WIP] Stickers editor 2024-04-09 07:23:03 +04:00
Ilya Laktyushin
a51c65e268 [WIP] Stickers editor 2024-04-07 18:39:05 +04:00
Ilya Laktyushin
ee2b7be5e2 [WIP] Stickers editor 2024-04-06 19:53:19 +04:00