Commit graph

25 commits

Author SHA1 Message Date
Isaac
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
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
Ali
e00edd5f56 Reaction improvements 2021-12-30 17:24:59 +04:00
Ali
6e5c503338 Refactoring 2021-09-20 14:51:46 +03:00
Ali
31bc746984 Fix more warnings 2021-08-05 01:42:59 +02:00
Ali
1a04fb4408 Refactor SyncCore back into TelegramCore 2021-07-21 21:43:20 +02:00
Ali
d4572a9248 Refactoring 2021-07-18 01:03:43 +02:00
Ali
1b48517f12 Refactoring 2021-04-26 02:00:48 +04:00
Ali
8a02b588d8 Initial history import support 2021-01-20 00:10:53 +04:00
Ali
2805b1715c Cleanup 2020-12-17 16:36:55 +04:00
Ilya Laktyushin
3ccf64e63f Add device location coordinate update throttling 2020-10-29 02:08:32 +04:00
Ilya Laktyushin
b711016755 Various fixes 2020-10-27 05:26:30 +04:00
Ilya Laktyushin
9e2447d78b Live location fixes 2020-10-23 19:11:32 +04:00
Ilya Laktyushin
e00eeec6ae Update API 2020-10-23 00:55:07 +04:00
Ilya Laktyushin
f2ad10b937 Update API 2020-10-15 23:06:09 +04:00
Ali
0e03c5e446 Comments update 2020-08-28 17:32:21 +01:00
Ali
c4004a23ee Initial implementation of the PSA API 2020-04-24 23:18:44 +04:00
Ali
f57d6b6168 Temp 2020-02-20 18:08:36 +04:00
Peter
10692a323e Refactor SyncCore 2019-10-21 16:58:00 +04:00
Peter
8181fbb1a6 Remove projects 2019-10-04 13:58:00 +04:00
Peter
e34bf0680a Temp 2019-08-27 00:44:36 +04:00
Peter
d701ec80e5 Temp 2019-08-26 04:28:26 +04:00
Peter
dbfb4eb8d9 Temp 2019-08-26 04:25:02 +04:00
Peter
9ac37c00c0 Refactor more modules 2019-08-05 15:04:45 +03:00