Commit Graph
67 Commits
Author SHA1 Message Date
isaacandisaac f5cb1391aa Merge commit '96b1432434205e2d09d7615bde1402d762ac2b8c' 2026-04-24 11:24:47 +04:00
isaacisaacClaude Opus 4.7
8408e0ae19 Postbox -> TelegramEngine waves 27-36
Consumer-sweep, facade-addition, and Peer→EnginePeer migrations:

- Wave 27: preferencesView consumer sweep
- Wave 28: resourceData consumer sweep
- Wave 29: resourceStatus consumer sweep
- Wave 30: _asStatus() bridge cleanup
- Wave 31: unused-import sweep re-run
- Wave 32: resourceStatus residue sweep
- Wave 33: loadedPeerWithId consumer sweep
- Wave 34: FoundPeer.peer Peer -> EnginePeer
- Wave 35: SendAsPeer.peer Peer -> EnginePeer
- Wave 36: ContactListPeer.peer Peer -> EnginePeer

Also includes per-wave specs, implementation plans, outcome logs, and
a CLAUDE.md wave-counter update.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-24 11:24:13 +04:00
Ilya Laktyushin e3bf0cd30c Various fixes 2026-04-23 01:26:13 +02:00
Ilya Laktyushin dbd40fe7d3 Various improvements 2026-04-22 23:03:51 +02:00
IsaacIsaacClaude Opus 4.7
b2ba4b5878 Postbox -> TelegramEngine wave 7: last TelegramEngine.* facade leaks
Closes the seven remaining raw-Postbox leaks in TelegramEngine public
facades surfaced by a post-wave-6 scouting pass (all non-permanently-
blocked candidates).

Facades migrated in place (6 rewrites + 1 deletion; all _internal_*
implementations unchanged per the "internal Postbox-facing stays raw"
rule):

  Messages:
    downloadMessage                          Signal<Message?>           -> Signal<EngineMessage?>
    topPeerActiveLiveLocationMessages        Signal<(Peer?, [Message])> -> Signal<(EnginePeer?, [EngineMessage])>
    getSynchronizeAutosaveItemOperations     deleted (dead facade; sole caller uses _internal_ directly)

  Peers:
    updatedRemotePeer                        Signal<Peer>  -> Signal<EnginePeer>
                                             (PeerReference param kept; no EnginePeer.Reference alias today)

  Resources:
    renderStorageUsageStatsMessages          [EngineMessage.Id: Message]  -> [EngineMessage.Id: EngineMessage]
    clearStorage(peerId: ...)                [Message]                     -> [EngineMessage]
    clearStorage(peerIds: ...)               [Message]                     -> [EngineMessage]
    clearStorage(messages:)                  [Message]                     -> [EngineMessage]
                                             (no external callers; migrated for overload-set consistency)

Consumer call-site updates (5 files):
  - ChatListSearchListPaneNode       drop redundant .flatMap(EngineMessage.init) wrap
  - LocationViewControllerNode       drop redundant .map(EngineMessage.init) wrap
  - LiveLocationSummaryManager       drop redundant EnginePeer(...) / EngineMessage(...) ctors
  - StorageUsageScreen               bridge [Message] <-> [EngineMessage] at the 4 facade-call points
                                     (internal [MessageId: Message] / [Message] storage kept;
                                      full-consumer-module migration is out of scope)

Discovery: grep of TelegramEngine/*/TelegramEngine*.swift public signatures
for `: Postbox|: Account|: MediaBox|: MediaResource|: Peer\b|: Message\b|
-> Signal<.*(Peer|Message)` turned up these seven candidates and no others.
After this wave, the full TelegramEngine.* facade surface is engine-typed
modulo the four permanently-blocked TelegramMediaResource-conforming
classes recorded in CLAUDE.md (ICloudFileResource, InstantPageExternal-
MediaResource, VideoLibraryMediaResource, YoutubeEmbedStoryboardMedia-
Resource).

No modules became Postbox-free in this wave. Plan: docs/superpowers/
plans/2026-04-20-postbox-to-telegramengine-wave-7.md.

Full project build verified green.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-20 00:25:28 +02:00
Ilya Laktyushin 25762d1133 Various fixes 2026-03-24 17:21:46 +01:00
Ilya Laktyushin a171e30532 [WIP] Polls 2026-03-14 00:07:57 +01:00
IsaacandIsaac 9a4327116d Refactor 2026-03-10 00:38:36 +01:00
Ilya Laktyushin 5ebc55af73 Fix location view 2026-02-04 17:34:19 +04:00
Ilya Laktyushin 0915a42e64 Various improvements 2025-10-16 05:30:06 +04:00
Ilya Laktyushin 0d1366e5cc Various improvements 2024-08-29 02:26:16 +04:00
IsaacandIsaac 7b18d52644 Adjust story map height if there are no results 2024-06-17 21:08:02 +04:00
IsaacandIsaac 9a075fa39e Refactoring 2024-06-12 23:04:04 +04:00
IsaacandIsaac 571e2164b2 Story search 2024-06-07 15:22:11 +04:00
Ilya Laktyushin ca415e3145 Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios 2024-04-22 19:28:37 +04:00
Ilya Laktyushin 6766f1358c Live location improvements 2024-04-17 01:49:15 +04:00
Ilya Laktyushin 7357c59707 Live location improvements 2024-04-16 18:42:21 +04:00
Ilya Laktyushin 5884fdff66 Various fixes 2023-08-13 03:50:44 +02:00
Ilya Laktyushin 9ddb8fa2d6 Don't show directions for story locations 2023-08-07 02:03:40 +02:00
Ilya Laktyushin 8805c0b7bd Story locations 2023-07-31 20:19:11 +02:00
Ilya Laktyushin be6541cf4a Various fixes 2023-06-30 21:03:49 +02:00
Ilya Laktyushin 8ac9121c5e Stories improvements 2023-06-27 20:53:24 +02:00
AliandAli 7a24eb2462 Refactoring 2023-04-18 11:50:24 +04:00
Ilya Laktyushin 1e2ed2d2f4 Chat wallpaper improvements 2023-04-08 20:10:49 +04:00
AliandAli e8d124c812 Refactoring 2022-05-28 18:26:23 +04:00
Ilya Laktyushin 461f9b874c Various settings UI improvements 2021-10-25 19:16:03 +04:00
Ilya Laktyushin 3f2689d7d0 Location directions fixes 2021-10-24 17:04:06 +04:00
Ilya Laktyushin d60588b3f1 Various Improvements 2021-10-22 18:59:41 +04:00
Ilya Laktyushin d8d344d2c1 Various Improvements 2021-10-14 04:40:07 +04:00
Ilya Laktyushin 4a12dcbb22 Initial invite requests implementation 2021-10-06 00:03:40 +04:00
AliandAli 00b6826303 Refactoring [skip ci] 2021-09-24 22:56:48 +03:00
AliandAli 6e5c503338 Refactoring 2021-09-20 14:51:46 +03:00
Ilya Laktyushin 4393227307 Various Improvements 2021-09-06 01:15:43 +03:00
AliandAli 1a04fb4408 Refactor SyncCore back into TelegramCore 2021-07-21 21:43:20 +02:00
AliandAli 7bed1728bb Refactor string generation 2021-07-20 11:57:50 +02:00
AliandAli d4572a9248 Refactoring 2021-07-18 01:03:43 +02:00
Ilya Laktyushin 4a853bf13d Add stickerpack strip expansion 2021-07-07 03:12:07 +03:00
Ilya Laktyushin e673a3153f Added list view accessibility scrolling localization 2021-02-19 20:27:25 +04:00
Ilya Laktyushin d164128145 Fix location view 2020-10-29 17:23:10 +04:00
Ilya Laktyushin 7666f05864 Location view fixes 2020-10-29 15:32:45 +04:00
Ilya Laktyushin 5c1155d66d Various fixes 2020-10-29 15:05:24 +04:00
Ilya Laktyushin 0e3b3429dc Fix live location start from modal location display 2020-10-29 00:09:07 +04:00
Ilya Laktyushin 2f13d11224 Location view fixes 2020-10-28 23:51:05 +04:00
Ilya Laktyushin 25b7b685ec Location view fixes 2020-10-28 22:40:51 +04:00
Ilya Laktyushin 72074f971b Location view fixes 2020-10-28 21:07:06 +04:00
Ilya Laktyushin 32effd4291 Various fixes 2020-10-28 04:46:09 +04:00
Ilya Laktyushin 28e2c78c81 Fix heading display 2020-10-27 19:00:51 +04:00
Ilya Laktyushin 9f1f1b49e7 Various fixes 2020-10-27 07:02:47 +04:00
Ilya Laktyushin b711016755 Various fixes 2020-10-27 05:26:30 +04:00
Ilya Laktyushin e789170a1a Various fixes 2020-10-26 19:12:11 +04:00