mirror of
https://github.com/permissionlesstech/bitchat.git
synced 2026-07-25 23:25:20 +00:00
Fix remaining compilation issues after rebase
- Fix PhotosUI import order (must be after platform imports) - Fix Data.WritingOptions.atomic reference - Add identity derivation caching to NostrIdentityBridge - Fix all remaining PeerID type conversions in ChatViewModel - Fix ContentView body structure to use main's VStack layout - Fix PaymentChipView API usage (now uses PaymentType enum) Build and tests now passing.
This commit is contained in:
@@ -10,14 +10,14 @@ import SwiftUI
|
|||||||
#if os(iOS)
|
#if os(iOS)
|
||||||
import UIKit
|
import UIKit
|
||||||
#endif
|
#endif
|
||||||
#if canImport(PhotosUI)
|
|
||||||
import PhotosUI
|
|
||||||
#endif
|
|
||||||
#if os(macOS)
|
#if os(macOS)
|
||||||
import AppKit
|
import AppKit
|
||||||
#endif
|
#endif
|
||||||
import UniformTypeIdentifiers
|
import UniformTypeIdentifiers
|
||||||
import BitLogger
|
import BitLogger
|
||||||
|
#if canImport(PhotosUI)
|
||||||
|
import PhotosUI
|
||||||
|
#endif
|
||||||
|
|
||||||
// MARK: - Supporting Types
|
// MARK: - Supporting Types
|
||||||
|
|
||||||
@@ -2047,7 +2047,7 @@ private extension ContentView {
|
|||||||
let tempURL = FileManager.default.temporaryDirectory
|
let tempURL = FileManager.default.temporaryDirectory
|
||||||
.appendingPathComponent(UUID().uuidString)
|
.appendingPathComponent(UUID().uuidString)
|
||||||
.appendingPathExtension("jpg")
|
.appendingPathExtension("jpg")
|
||||||
try data.write(to: tempURL, options: .atomic)
|
try data.write(to: tempURL, options: Data.WritingOptions.atomic)
|
||||||
await MainActor.run {
|
await MainActor.run {
|
||||||
viewModel.sendImage(from: tempURL) {
|
viewModel.sendImage(from: tempURL) {
|
||||||
try? FileManager.default.removeItem(at: tempURL)
|
try? FileManager.default.removeItem(at: tempURL)
|
||||||
|
|||||||
Reference in New Issue
Block a user