Убраны actor-isolation warnings и выровненны версии extension
This commit is contained in:
@@ -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 }
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user