Commit graph

224 commits

Author SHA1 Message Date
Ilya Laktyushin
3e6363abf9 Various improvements 2026-05-28 16:50:05 +02:00
isaac
f5cb1391aa Merge commit '96b1432434' 2026-04-24 11:24:47 +04:00
isaac
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
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
Isaac
16c630b946 Refactoring 2026-04-03 15:50:39 +08:00
Ilya Laktyushin
8a523bc1cd Update localization 2026-03-27 02:32:43 +01:00
Ilya Laktyushin
25762d1133 Various fixes 2026-03-24 17:21:46 +01:00
Ilya Laktyushin
66d08c0e1b Various improvements 2026-03-22 13:44:04 +01:00
Ilya Laktyushin
a171e30532 [WIP] Polls 2026-03-14 00:07:57 +01:00
Isaac
9a4327116d Refactor 2026-03-10 00:38:36 +01:00
Ilya Laktyushin
b87a202329 Various fixes 2026-02-28 00:35:08 +04:00
Ilya Laktyushin
5ebc55af73 Fix location view 2026-02-04 17:34:19 +04:00
Isaac
ca6fdc1629 Glass 2026-01-25 00:31:18 +08:00
Isaac
4a13c3830a Glass 2025-12-26 20:29:30 +08:00
Isaac
3486393f99 Glass 2025-12-20 03:02:08 +08:00
Isaac
a63c90aa00 Glass 2025-12-12 23:58:00 +08:00
Isaac
0c3530d8a8 Glass 2025-12-10 00:16:36 +08:00
Isaac
42f10b4fed Merge branch 'master' into glass-26 2025-12-02 17:30:38 +08:00
Ilya Laktyushin
6bc1fe1939 Various improvements 2025-12-01 19:54:58 +04:00
Isaac
0055396d4d Update 2025-11-26 23:05:30 +08:00
Ilya Laktyushin
b0f4ca9ad9 Various improvements 2025-11-12 18:41:57 +04:00
Ilya Laktyushin
4432581c77 Various improvements 2025-10-31 18:13:30 +04:00
Ilya Laktyushin
5877f2c20d Various improvements 2025-10-29 17:20:36 +04:00
Ilya Laktyushin
c014d0b333 Various improvements 2025-10-22 21:12:38 +04:00
Ilya Laktyushin
85092482f3 Various improvements 2025-10-17 17:01:25 +04:00
Ilya Laktyushin
473b00c2e7 Various improvements 2025-10-16 08:09:30 +04:00
Ilya Laktyushin
0915a42e64 Various improvements 2025-10-16 05:30:06 +04:00
Isaac
ebcd0557e5 Temp 2025-09-12 10:54:22 +02:00
Isaac
c7a2fe5d3e Update to iOS 13 2025-06-11 16:59:53 +08:00
Isaac
4d66f53230 Update PlayerV2 2025-01-14 22:49:26 +08:00
Isaac
931e34e1bd Temp 2024-11-27 17:37:21 +04:00
Ilya Laktyushin
0d1366e5cc Various improvements 2024-08-29 02:26:16 +04:00
Ilya Laktyushin
d4b769f5a1 Various fixes 2024-08-23 01:45:37 +04:00
Ilya Laktyushin
345616704a Browser improvements 2024-07-22 07:11:46 +04:00
Ilya Laktyushin
4216ee3933 Various improvements 2024-07-13 18:13:58 +04:00
Ilya Laktyushin
f5092b8d8d Web app improvements 2024-07-02 21:03:22 +04:00
Ilya Laktyushin
613bba57c2 Web app improvements 2024-07-02 08:47:03 +04:00
Isaac
7b18d52644 Adjust story map height if there are no results 2024-06-17 21:08:02 +04:00
Isaac
9a075fa39e Refactoring 2024-06-12 23:04:04 +04:00
Isaac
2254886ae3 Story location improvements 2024-06-07 19:34:53 +04:00
Isaac
a2bbf58b76 Merge commit '1cc27e2a20'
# Conflicts:
#	submodules/AccountContext/Sources/AccountContext.swift
#	submodules/TelegramCore/Sources/ApiUtils/StoreMessage_Telegram.swift
#	submodules/TelegramCore/Sources/TelegramEngine/Messages/MediaArea.swift
#	submodules/TelegramCore/Sources/TelegramEngine/Messages/StoryListContext.swift
#	submodules/TelegramUI/Components/PeerInfo/PeerInfoStoryGridScreen/Sources/StorySearchGridScreen.swift
#	submodules/TelegramUI/Components/Stories/StoryContainerScreen/Sources/StoryItemSetContainerViewSendMessage.swift
#	submodules/TelegramUI/Sources/SharedAccountContext.swift
2024-06-07 15:27:36 +04:00
Isaac
571e2164b2 Story search 2024-06-07 15:22:11 +04:00
Ilya Laktyushin
5470ba80ec Various improvements 2024-06-07 09:51:45 +04:00
Isaac
378b7e8ed5 Message preview improvements 2024-05-17 17:10:19 +04:00
Isaac
8736981248 Message effects improvements 2024-05-13 20:14:15 +04:00
Isaac
1f4297e0db Merge commit '914dbc46f6' 2024-04-23 12:57:52 +04:00
Isaac
8e043a3a7d Various improvements 2024-04-23 12:57:38 +04:00
Ilya Laktyushin
914dbc46f6 Recent actions improvements 2024-04-23 12:01:28 +04:00