Commit Graph
76 Commits
Author SHA1 Message Date
Ilya Laktyushin e97422e333 Various fixes 2026-04-27 04:40:29 +02:00
Ilya Laktyushin f41630083a Various improvements 2026-04-24 03:16:14 +02:00
isaacisaacClaude Opus 4.7
4879d89a92 Postbox -> TelegramEngine wave 22: storeResourceData facade + consumer sweep
Same shape as wave 21. Adds TelegramEngine.Resources.storeResourceData(id:, data:, synchronous:)
and sweeps 46 context.account.postbox.mediaBox.storeResourceData sites across 17 files.

The range-store overload and accountManager.mediaBox sites are explicitly out of scope.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-21 03:51:11 +04:00
IsaacIsaacClaude Opus 4.6
f84e94f507 MediaResource → EngineMediaResource refactor: wave 2
Drive raw `MediaResource` out of the `TelegramEngine` public facade for
photo-upload APIs, and complete a first batch of consumer-side
migrations. Behavior-preserving. The `_internal_*` Postbox-facing
functions are untouched — only the facade signatures change, bridging
inside via `_asResource()` / `EngineMediaResource(_:)`.

TelegramEngine facades migrated (signatures now take EngineMediaResource):
- TelegramEngine.Peers.uploadedPeerPhoto / uploadedPeerVideo
- TelegramEngine.Peers.updatePeerPhoto (closure param too)
- TelegramEngine.AccountData.updateAccountPhoto / updateFallbackPhoto
- TelegramEngine.Contacts.updateContactPhoto
- TelegramEngine.Auth.uploadedPeerVideo

Consumer-side changes:
- MapResourceToAvatarSizes utility: signature is now
  (engine: TelegramEngine, resource: EngineMediaResource, ...). Uses
  engine.resources.data(id:) internally. The submodule drops
  `import Postbox` and the Bazel dep.
- AuthorizationUI: avatar-video signal retyped from
  Signal<TelegramMediaResource?> to Signal<EngineMediaResource?>.
- 27 `mapResourceToAvatarSizes(postbox:...)` call sites across 5
  TelegramUI/TelegramCallsUI files migrated to the new form.

Deferred:
- SaveToCameraRoll (planned Task 8) abandoned — module has three
  public functions taking `postbox: Postbox` (umbrella-type leak,
  banned by rule 2) and requires a full module-migration wave, not a
  type swap. Reason recorded in the wave-2 plan doc.
- Other TelegramEngine facades still leaking MediaResource
  (TelegramEngineStickers.uploadSticker; UploadSecureIdFile.* —
  additionally leaks Postbox) flagged for a future wave.

Docs:
- CLAUDE.md: new rule 7 (TelegramCore never imports UIKit/Display,
  shared with Telegram-Mac), and a new "MediaResource →
  EngineMediaResource consumer migration" section describing the
  wrap/unwrap helpers and the modify-in-place facade-bridging
  pattern.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-17 09:07:54 +02:00
Ilya Laktyushin ed55943a44 Various improvements 2026-03-27 01:13:38 +01:00
Ilya Laktyushin 96bb624b2d Merge branch 'formatted-date-api' 2026-02-06 14:25:09 +04:00
IsaacandIsaac 2db08cde89 Glass 2026-01-13 19:21:49 +04:00
Ilya Laktyushin 28d4e1e171 Various improvements 2025-12-16 20:05:44 +04:00
IsaacandIsaac adbc7bad61 Various improvements 2025-07-01 14:57:33 +02:00
IsaacandIsaac c7269fa310 Conference updates 2025-04-15 17:49:31 +04:00
IsaacandIsaac bb015f2bfa Various improvements 2025-03-13 00:34:59 +01:00
Ilya Laktyushin c73f24f5f2 Various improvements 2025-01-20 05:46:17 +04:00
Ilya Laktyushin 1ae20bd685 Various improvements 2024-06-15 18:41:19 +04:00
Ilya Laktyushin 097eacdc34 Various improvements 2024-05-25 02:29:19 +04:00
IsaacandIsaac 38bc517122 Group invitation sheet 2024-03-26 15:57:00 +04:00
AliandAli 77a5857a25 Sharing refactoring 2023-08-15 23:57:04 +04:00
Ilya Laktyushin 74faad7a03 Various improvements 2023-08-05 15:32:12 +02:00
Ilya Laktyushin 8805c0b7bd Story locations 2023-07-31 20:19:11 +02:00
Ilya Laktyushin eed0f5cee6 Use participants names for group title placeholder 2023-03-15 14:26:00 +04:00
AliandAli 3a48235d13 Allow public links if private are not available 2023-03-02 20:07:24 +04:00
AliandAli 0102433f8b UI improvements 2023-03-01 21:25:32 +04:00
Ilya Laktyushin bf94ea75e9 Various fixes 2023-02-06 00:55:17 +04:00
Ilya Laktyushin 72fce11e2d Various fixes 2023-01-27 00:57:19 +04:00
Ilya Laktyushin ad0fe38ba7 Various improvements 2023-01-23 15:48:57 +04:00
Ilya Laktyushin 58c532b51e Various improvements 2023-01-21 15:56:57 +04:00
Ilya Laktyushin 587d700978 Various fixes 2023-01-19 17:00:41 +04:00
Ilya Laktyushin 71f367027d Various fixes 2023-01-18 19:44:24 +04:00
Ilya Laktyushin ce08d17d29 Fix avatar setup crash 2023-01-14 13:54:15 +04:00
Ilya Laktyushin 930e237bf1 Bot peer request support
Launch screen icon
2023-01-13 22:38:04 +04:00
Ilya Laktyushin 9937826307 Various fixes 2022-12-23 10:11:08 +04:00
Ilya Laktyushin fe904af993 Avatar fixes 2022-12-17 20:24:26 +04:00
Ilya Laktyushin 5788f4a1ac Custom contact photos [skip ci] 2022-12-06 16:03:53 +04:00
Ilya Laktyushin 1103706315 Update API 2022-12-05 17:05:40 +04:00
AliandAli 33dc13f2d5 Update localization 2022-11-27 23:01:27 +04:00
Ilya Laktyushin a73a704910 Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios 2022-11-27 16:17:31 +04:00
Ilya Laktyushin ab9bb767c2 Various fixes 2022-11-27 16:17:22 +04:00
AliandAli 60ebcc847a Autoremove improvements 2022-11-27 15:27:05 +04:00
AliandAli 1656ecff49 - Forum improvements
- Global autoremove settings
2022-11-25 23:08:40 +04:00
AliandAli 9e9b7b58d5 Api Experiments 2022-11-24 16:16:13 +04:00
AliandAli a92f3fe738 Fix build 2022-11-01 18:07:52 +04:00
AliandAli d01a7853fa [WIP] Topic APIs 2022-09-28 12:15:06 +02:00
AliandAli 3edd84cf95 Refactoring 2022-05-27 22:33:40 +04:00
Ilya Laktyushin 33c627fb75 Various fixes 2022-04-12 17:44:19 +04:00
AliandAli a9c595a640 Another feed experiment 2022-03-18 22:55:06 +04:00
AliandAli 51d8d56ec7 Refactoring & update Xcode 2021-09-26 01:05:20 +03: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
AliandAli 1141e09c1b Refactoring 2021-09-07 13:09:06 +04:00
AliandAli 20e3b2aa4d Merge branch 'master' into experimental-2 2021-08-05 14:16:27 +02:00
AliandAli 895927cc04 Fix more warnings 2021-08-05 12:58:22 +02:00