mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Postbox -> TelegramEngine wave 21: completedResourcePath facade + consumer sweep
Combined wave-19+wave-20 shape. Adds TelegramEngine.Resources.completedResourcePath(id:, pathExtension:) facade and sweeps 29 consumer sites across 14 files in one atomic commit. Shape A/B migrated. Shape C (5 sites with raw account: Account) and Shape D (3 sites with local postbox: Postbox field) intentionally skipped — need module-scoped init-signature rework rather than per-site sweep. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
7919556375
commit
53f023ea52
17 changed files with 70 additions and 31 deletions
|
|
@ -516,7 +516,7 @@ public final class SecretMediaPreviewController: ViewController {
|
|||
var duration: Double = 0.0
|
||||
for media in message.media {
|
||||
if let file = media as? TelegramMediaFile {
|
||||
if let path = self.context.account.postbox.mediaBox.completedResourcePath(file.resource) {
|
||||
if let path = self.context.engine.resources.completedResourcePath(id: EngineMediaResource.Id(file.resource.id)) {
|
||||
let tempFile = TempBox.shared.file(path: path, fileName: file.fileName ?? "file")
|
||||
self.tempFile = tempFile
|
||||
tempFilePath = tempFile.path
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue