Убраны actor-isolation warnings и выровненны версии extension

This commit is contained in:
2026-03-28 09:18:48 +05:00
parent 1978db0f38
commit 66369ec0b9
29 changed files with 938 additions and 443 deletions

View File

@@ -1038,7 +1038,7 @@ final class NativeMessageCell: UICollectionViewCell, UIContextMenuInteractionDel
photoLoadTasks[attachmentId] = Task { [weak self] in
await ImageLoadLimiter.shared.acquire()
let loaded = await Task.detached(priority: .userInitiated) {
await AttachmentCache.shared.loadImage(forAttachmentId: attachmentId)
AttachmentCache.shared.loadImage(forAttachmentId: attachmentId)
}.value
await ImageLoadLimiter.shared.release()
guard !Task.isCancelled else { return }

View File

@@ -727,7 +727,7 @@ extension NativeMessageListController: ComposerViewDelegate {
/// When `preCalculatedHeight` is set, `preferredLayoutAttributesFitting` returns it
/// immediately skipping the expensive SwiftUI self-sizing layout pass.
final class PreSizedCell: UICollectionViewCell {
/// Height from C++ MessageLayout engine. Set in cell registration closure.
/// Precomputed layout height for the message cell. Set in cell registration closure.
var preCalculatedHeight: CGFloat?
override func preferredLayoutAttributesFitting(