Commit graph

284 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
027ac77ad7 Various improvements 2026-04-28 16:58:04 +04:00
Ilya Laktyushin
9c15b8c27d Various improvements 2026-04-25 17:32:26 +02:00
Ilya Laktyushin
f41630083a Various improvements 2026-04-24 03:16:14 +02:00
Isaac
8edaa79eda Merge commit '23c4d94748' 2026-04-19 23:54:22 +02:00
Isaac
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
23c4d94748 Various fixes 2026-04-19 21:50:24 +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
Isaac
d147c63b68 Refactoring 2026-04-07 11:31:22 +02:00
Isaac
34477605b1 Various improvements 2026-03-31 20:24:24 +08:00
Isaac
ca6fdc1629 Glass 2026-01-25 00:31:18 +08:00
Mikhail Filimonov
db93244583 update api (rarities, crafted) 2026-01-16 16:20:08 +04:00
Ilya Laktyushin
974a2f6caa Various improvements 2025-12-26 13:34:23 +04:00
Ilya Laktyushin
f7f3b92fa7 Various improvements 2025-12-23 22:25:44 +04:00
Isaac
b40513ac37 Glass 2025-12-20 03:24:48 +08:00
Ilya Laktyushin
ef5b8537e0 Various fixes 2025-12-17 15:54:44 +04:00
Ilya Laktyushin
28d4e1e171 Various improvements 2025-12-16 20:05:44 +04:00
Isaac
08fae7b3c3 Update 2025-10-02 00:14:52 +08:00
Isaac
c2c99edf89 Emoji bottom panel 2025-10-01 00:10:10 +08:00
Isaac
bdca60c3d0 Update 2025-09-30 20:54:54 +08:00
Isaac
4746b8d486 Stickers 2025-09-30 19:09:58 +08:00
Isaac
a7385ad068 Update 2025-09-30 17:41:32 +08:00
Isaac
cfbd75f03d Fix entity inputs 2025-09-29 00:51:42 +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
c7a2fe5d3e Update to iOS 13 2025-06-11 16:59:53 +08:00
Isaac
c2f0633161 Implement new emoji metadata file format 2025-06-02 23:55:34 +08:00
Ilya Laktyushin
b130511450 [WIP] Gift resale 2025-04-12 02:19:32 +04:00
Isaac
1cd1c1e0b3 Merge branch 'temp-ppp'
# Conflicts:
#	submodules/TelegramUI/Sources/AccountContext.swift
2025-03-14 15:37:17 +01:00
Isaac
daaa6a7e2e IOSurface experiment 2025-03-14 15:34:16 +01:00
Isaac
46e71cd7c7 Merge branch 'beta'
# Conflicts:
#	Telegram/Telegram-iOS/en.lproj/Localizable.strings
2025-03-13 00:30:16 +01:00
Isaac
588f5cb8c0 Guard resource parsing 2025-03-08 18:30:57 +01:00
Isaac
383ab9e479 Various improvements 2025-03-07 17:52:50 +01:00
Isaac
faa765b601 Various optimizations 2025-03-04 14:13:07 +01:00
Isaac
894e0e4705 Various improvements 2025-02-27 12:23:14 +01:00
Isaac
1fb93ab298 Various improvements 2025-02-25 14:46:07 +00:00
Isaac
54ee2c17aa Rewrite gif rendering 2025-02-19 13:22:12 +01:00
Isaac
f17ead143a Various improvements 2025-02-18 14:43:23 +01:00
Isaac
f6fa8788f3 Update API 2025-02-15 13:17:01 +04:00
Isaac
6c4070eb52 Serialization update 2025-02-14 19:11:58 +04:00
Isaac
8918f70173 [WIP] Serialization 2025-02-13 22:32:59 +04:00
Ilya Laktyushin
10ac25e1cb Various improvements 2025-01-27 23:44:07 +04:00
Ilya Laktyushin
0485aed646 Various improvements 2025-01-23 06:46:50 +04:00
Ilya Laktyushin
ef6c097f6f Various improvements 2025-01-18 13:44:42 +04:00
Ilya Laktyushin
b6f8cce7ea Update API [skip ci] 2025-01-10 15:22:27 +04:00
Isaac
d9957ecf4e Custom vibrance effect 2024-12-23 21:43:25 +08:00
Isaac
987233def2 Channel reaction search 2024-10-18 18:09:40 +04:00
Ilya Laktyushin
7fa73c6106 Merge branch 'stars-subscriptions' 2024-08-06 22:40:37 +02:00