Commit graph

306 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
532a3ae3e1 Various fixes 2026-04-16 21:45:26 +02:00
Isaac
34477605b1 Various improvements 2026-03-31 20:24:24 +08:00
Isaac
2907ddbe46 Unseen polls 2026-03-27 18:30:01 +08:00
Ilya Laktyushin
77cc01f0d9 Various fixes 2026-03-26 13:58:50 +01:00
Ilya Laktyushin
6fd65e6d26 Various improvements 2026-03-22 16:53:55 +01:00
Ilya Laktyushin
8098f24f4e Various improvements 2026-03-22 16:41:22 +01:00
Ilya Laktyushin
3a311f75bd Update API 2026-03-16 13:37:36 +01:00
Ilya Laktyushin
cbc5a49507 [WIP] Polls 2026-03-13 11:04:33 +01:00
Isaac
9a4327116d Refactor 2026-03-10 00:38:36 +01:00
Ilya Laktyushin
96bb624b2d Merge branch 'formatted-date-api' 2026-02-06 14:25:09 +04:00
Isaac
2db08cde89 Glass 2026-01-13 19:21:49 +04:00
Ilya Laktyushin
21995065d6 Various fixes 2026-01-08 00:20:56 +04:00
Isaac
4a13c3830a Glass 2025-12-26 20:29:30 +08:00
Ilya Laktyushin
1a1f08de64 Various improvements 2025-12-17 14:31:54 +04:00
Isaac
1ee7268488 Glass 2025-12-06 01:28:06 +08:00
Isaac
b9b38e5fbf Various improvements 2025-10-11 00:56:21 +08:00
Isaac
4f4fc92345 Bot forum updates 2025-09-05 15:43:19 +02:00
Ilya Laktyushin
e7c698d5f1 Various fixes 2025-08-23 21:40:21 +04:00
Ilya Laktyushin
0bac271cdb [WIP] Saved music 2025-08-21 09:08:35 +04:00
Isaac
a25bedd36b Rating 2025-08-05 17:43:59 +02:00
Isaac
179c1341be Various improvements 2025-08-01 21:29:26 +02:00
Isaac
375c2a6b6e Various improvements 2025-08-01 16:07:23 +02:00
Isaac
edd33a0103 Update localization 2025-07-29 20:54:12 +02:00
Isaac
f32c9f52d5 Global search 2025-07-28 19:10:07 +02:00
Isaac
bd797798e1 Rating 2025-07-28 18:00:24 +02:00
Isaac
865cebe0e7 Levels 2025-07-28 11:55:56 +02:00
Isaac
6ff5012e18 Rating 2025-07-28 00:29:25 +02:00
Isaac
43e0f92aa2 Merge commit 'f3a27124d7' 2025-07-27 15:01:57 +02:00
Isaac
e315e6da6e Global search 2025-07-27 15:01:53 +02:00
Ilya Laktyushin
5a5892b3a7 Fix build 2025-07-26 12:26:56 +02:00
Isaac
b8ac955792 Update 2025-07-25 17:40:09 +02:00
Isaac
46dad2eddc WIP 2025-07-25 15:20:36 +02:00
Ilya Laktyushin
9d703f5b60 Various fixes 2025-07-21 00:38:47 +02:00
Isaac
a23deded22 Cleanup 2025-06-28 19:48:34 +02:00
Ilya Laktyushin
88405d99ec Various improvements 2025-06-13 18:19:01 +02:00
Isaac
66ce61e756 Monoforums 2025-05-27 21:51:30 +08:00
Isaac
df088af209 Monoforums 2025-05-27 21:17:05 +08:00
Isaac
9633013275 Monoforums 2025-05-23 15:56:01 +08:00
Isaac
1a56afcb48 [WIP] Monoforums 2025-05-16 01:02:25 +08:00
Isaac
e77402d7b3 [WIP] Chatlist suggestions 2025-04-28 23:35:47 +02:00
Ilya Laktyushin
b130511450 [WIP] Gift resale 2025-04-12 02:19:32 +04:00
Isaac
dd471503ba Merge commit '7d8920db82'
# Conflicts:
#	submodules/CallListUI/Sources/CallListController.swift
2025-03-30 02:07:46 +04:00
Isaac
aaf52d4282 Conference calls 2025-03-30 02:06:50 +04:00
Ilya Laktyushin
f720277d29 Various improvements 2025-03-23 03:56:44 +04:00
Ilya Laktyushin
d6eecb7844 Various improvements 2025-03-18 20:12:41 +04:00
Ilya Laktyushin
2454a7a876 Various improvements 2025-03-18 14:39:58 +04:00
Ilya Laktyushin
fed338985d Various improvements 2025-03-14 13:35:44 +04:00
Isaac
6faefd876a Merge commit '399933bc5e' 2025-03-13 00:35:11 +01:00
Isaac
bb015f2bfa Various improvements 2025-03-13 00:34:59 +01:00