Commit Graph
53 Commits
Author SHA1 Message Date
Ilya Laktyushin 91eb779ae2 Merge commit 'c64653ed37ce9fe2bc74e260e9e960fcf3ab5dc1' 2026-05-14 12:45:26 +02:00
isaacisaacClaude 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 bde3418ce5 Various fixes 2026-04-28 19:16:08 +02:00
Ilya Laktyushin f852dca2c8 Manual date formatting 2026-02-24 13:07:08 +04:00
Ilya Laktyushin 2e95fa0a08 Fix build 2025-12-27 22:22:49 +04:00
Ilya Laktyushin 72c466ca13 Various improvements 2025-07-02 22:03:34 +02:00
IsaacandIsaac b56a0143f3 Stars 2025-06-24 13:02:37 +02:00
IsaacandIsaac 4bed1703a2 Emoji in chat folders 2024-12-25 00:17:19 +08:00
Ilya Laktyushin 5451053195 Various improvements 2024-12-22 17:16:14 +04:00
Ilya Laktyushin f7e6755a39 Update API 2024-09-19 03:24:24 +04:00
Ilya Laktyushin 4216ee3933 Various improvements 2024-07-13 18:13:58 +04:00
Ilya Laktyushin 1ae20bd685 Various improvements 2024-06-15 18:41:19 +04:00
IsaacandIsaac 17d9d6caf3 Quote improvements 2024-05-24 18:10:30 +04:00
IsaacandIsaac 16b6083b6e Merge commit 'c751b2b790a37424fe946935dab950c9121cb975' 2024-05-24 15:52:04 +04:00
IsaacandIsaac 3f7113797e Quote improvements 2024-05-24 15:52:01 +04:00
Ilya Laktyushin c751b2b790 Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios 2024-05-24 13:56:34 +04:00
Ilya Laktyushin 3ef498d39a Various improvements 2024-05-24 13:56:24 +04:00
IsaacandIsaac b7fe230590 Quote improvements 2024-05-24 13:39:23 +04:00
IsaacandIsaac b4dd3591af Blockquote experiments 2024-05-23 23:49:43 +04:00
Ilya Laktyushin acf905a098 Various improvements 2024-04-20 19:37:16 +04:00
IsaacandIsaac 6730f7d2fb Various improvements 2023-12-20 22:17:06 +04:00
AliandAli 5ab45be3c7 Implement code highlight colors 2023-11-02 20:19:24 +04:00
AliandAli eb15434a8e Syntax highlight 2023-10-31 16:47:10 +04:00
AliandAli 75ee418716 Various improvements 2023-10-23 17:41:52 +04:00
AliandAli 03e09b7489 Use bit mask for font attribute calculation 2023-10-20 11:46:52 +04:00
AliandAli 9ebff2dd6c Quote improvements 2023-10-18 20:02:03 +04:00
AliandAli eae866c77e [WIP] Quotes 2023-10-07 00:33:12 +04:00
AliandAli bab2b39725 Quotes experiment 2023-10-03 23:20:45 +04:00
Ilya Laktyushin d058e0a8c5 Various fixes 2023-06-24 03:55:03 +04:00
Ilya Laktyushin 75c01b0897 Various fixes 2023-06-22 02:51:48 +04:00
Ilya Laktyushin 09e2e5bdc2 Story caption improvements 2023-06-20 18:05:20 +04:00
Ilya Laktyushin d968f3aca3 Various story improvements 2023-06-18 18:26:12 +04:00
Ilya Laktyushin ca8f59565b Various fixes 2023-03-04 20:17:12 +04:00
Ilya Laktyushin 77df1cf45a Various improvements 2022-12-17 15:35:00 +04:00
Ilya Laktyushin 37e752c78f Various forum improvements 2022-11-15 22:29:09 +04:00
AliandAli 554cd0e6fe Topic improvements + interval ads 2022-10-29 00:26:57 +04:00
AliandAli 93cb743468 Emoji improvements 2022-09-01 03:12:43 +04:00
AliandAli 2a5b45883d Emoji fixes 2022-07-16 02:02:39 +02:00
AliandAli 0577baac79 Emoji input improvements 2022-07-15 03:37:03 +02:00
AliandAli ed59ead31e [WIP] Animated emoji 2022-07-08 19:53:20 +02:00
AliandAli c112bc5146 Entity input: improved animation cache and rendering 2022-06-24 02:06:02 +01:00
AliandAli 274f05d80a Animated emoji 2022-05-21 01:16:29 +03:00
Ilya Laktyushin db2885d7a9 Various Improvements 2022-01-05 00:52:00 +03:00
Ilya Laktyushin 6035a52fd3 Various Improvements 2021-12-21 18:36:44 +04:00
Ilya Laktyushin 2d3aee57f4 Various Improvements 2021-12-20 18:39:36 +04:00
Ilya Laktyushin 835ce9adae Various Improvements 2021-12-18 02:35:50 +04:00
Ilya Laktyushin 0cc01c5280 Various Improvements 2021-12-16 00:47:26 +04:00
Ilya Laktyushin d8ec49897d Update API 2021-12-15 04:35:04 +04:00
Ilya LaktyushinandAli 40b7feac42 Video Messages Improvements
(cherry picked from commit e614343888)
2021-07-31 12:32:58 +02:00
AliandAli 3d388560c4 Poll improvements 2020-04-14 00:53:47 +04:00