Skip to content

Implement timestamp-based network subscription optimization

690f8b8
Select commit
Loading
Failed to load commit list.
Draft

WIP Local relay model #3204

Implement timestamp-based network subscription optimization
690f8b8
Select commit
Loading
Failed to load commit list.
Xcode Cloud / damus | Default | Test - iOS required action Oct 15, 2025 in 12m 5s

1 error, 893 warnings

Report Summary
Errors 1
Test Failures 0
Analysis Issues 0
Warnings 893

Details

1 Error

Details

  damusTests/NostrNetworkManagerTests/NostrNetworkManagerTests.swift:46
      Member 'ndbFirst(optimizeNetworkFilter:)' expects argument of type 'Bool'

893 Warnings

Details

  damus/Features/Events/Models/EventsModel.swift:87
      Sending 'self' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Extensions/VisibilityTracker.swift:95
      'onChange(of:perform:)' was deprecated in iOS 17.0: Use `onChange` with a two or zero parameter action closure instead.
  damus/Features/Profile/Views/EditPictureControl.swift:524
      Sending 'self.uploader' risks causing data races; this is an error in the Swift 6 language mode
  nostrdb/mdb.c:4732
      '@param' command used in a comment that is not attached to a function declaration
  damus/Features/Zaps/Views/CustomizeZapView.swift:138
      'onChange(of:perform:)' was deprecated in iOS 17.0: Use `onChange` with a two or zero parameter action closure instead.
  damus/Shared/Utilities/Router.swift:131
      Sending 'followers' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/Router.swift:127
      Sending 'walletModel.some' risks causing data races; this is an error in the Swift 6 language mode
  damus/TestData.swift:445
      Let 'test_thread_note_2' is not concurrency-safe because non-'Sendable' type 'NdbNote' may have shared mutable state; this is an error in the Swift 6 language mode
  damus/Features/Profile/Views/ProfileActionSheetView.swift:355
      Static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/Router.swift:131
      Sending 'damusState' risks causing data races; this is an error in the Swift 6 language mode
  damus/Features/Timeline/Models/HomeModel.swift:925
      Sending 'events' risks causing data races; this is an error in the Swift 6 language mode
  damus/Features/Profile/Views/ProfileActionSheetView.swift:286
      Sending 'self.damus_state' risks causing data races; this is an error in the Swift 6 language mode
  damus/Features/Chat/ReplyQuoteView.swift:21
      No 'async' operations occur within 'await' expression
  nostrdb/src/nostrdb.c:5087
      Variable 'saved_size' may be uninitialized when used here
  damus/Shared/Utilities/Router.swift:94
      Call to main actor-isolated initializer 'init(settings:damus_state:)' in a synchronous nonisolated context
  damus/Features/Search/Views/SearchHomeView.swift:123
      Sending 'self.model' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/EventCache.swift:411
      Pattern that the region based isolation checker does not understand how to check. Please file a bug; this is an error in the Swift 6 language mode
  damus/Features/Settings/Views/NotificationSettingsView.swift:57
      Sending 'self.damus_state.push_notification_client' risks causing data races; this is an error in the Swift 6 language mode
  damus/Features/Wallet/Views/ConnectWalletView.swift:27
      'onChange(of:perform:)' was deprecated in iOS 17.0: Use `onChange` with a two or zero parameter action closure instead.
  damus/Shared/Utilities/URLHandler.swift:45
      Non-Sendable 'ContentView.ViewOpenAction'-typed result can not be returned from main actor-isolated instance method 'handle(purple_url:)' to nonisolated context; this is an error in the Swift 6 language mode
  DamusNotificationService/NotificationFormatter.swift:99
      Sending 'notify.event' risks causing data races; this is an error in the Swift 6 language mode
  damus/ContentView.swift:769
      Sending 'self.damus_state.nostrNetwork' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Media/Camera/Models/CameraService.swift:690
      Sending 'self' risks causing data races; this is an error in the Swift 6 language mode
  damus/Features/Translations/Models/Translator.swift:187
      Capture of 'onCancel' with non-Sendable type '() -> Void?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
  damus/Features/Purple/Models/DamusPurple.swift:203
      Sending 'self' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/InputDismissKeyboard.swift:39
      Call to main actor-isolated instance method 'endEditing' in a synchronous nonisolated context
  damus/Features/Events/NoteContentView.swift:296
      Sending 'self.damus_state' risks causing data races; this is an error in the Swift 6 language mode
  damus/Features/Translations/Views/TranslateView.swift:76
      Sending 'self.event' risks causing data races; this is an error in the Swift 6 language mode
  nostrdb/src/block.c:31
      Implicit conversion loses integer precision: 'uint64_t' (aka 'unsigned long long') to 'enum nostr_bech32_type'
  damus/Features/Events/NoteContentView.swift:28
      'withUnsafeBytes' is deprecated: use `withUnsafeBytes(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
  nostrdb/mdb.c:3543
      Implicit conversion loses integer precision: 'MDB_ID' (aka 'unsigned long') to 'unsigned int'
  nostrdb/mdb.c:5288
      Implicit conversion loses integer precision: 'ssize_t' (aka 'long') to 'int'
  nostrdb/ccan/ccan/mem/mem.h:71
      '@c' command has no word arguments, expected 1
  damus/Features/Purple/Models/PurpleStoreKitManager.swift:17
      Passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
  damus/Features/Settings/Views/ZapSettingsView.swift:31
      'onChange(of:perform:)' was deprecated in iOS 17.0: Use `onChange` with a two or zero parameter action closure instead.
  damus/Features/Timeline/Models/HomeModel.swift:603
      Sending 'self' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Extensions/OffsetExtension.swift:75
      Main actor-isolated property 'connectedScenes' can not be referenced from a nonisolated context
  damus/Shared/Media/Camera/Models/PhotoCaptureProcessor.swift:70
      Capture of 'self' with non-Sendable type 'PhotoCaptureProcessor' in a '@Sendable' closure
  damus/TestData.swift:39
      Let 'test_super_short_note' is not concurrency-safe because non-'Sendable' type 'NostrEvent' (aka 'NdbNote') may have shared mutable state; this is an error in the Swift 6 language mode
  damus/Core/Nostr/RelayPool.swift:203
      Non-Sendable type '[RelayPool.Relay]' of property 'relays' cannot exit main actor-isolated context; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/Router.swift:80
      Call to main actor-isolated initializer 'init(damus_state:dms:colorScheme:)' in a synchronous nonisolated context
  damus/Shared/Media/Camera/Models/CameraService.swift:421
      Capture of 'self' with non-Sendable type 'CameraService' in a '@Sendable' closure
  damus/Features/Settings/Views/KeySettingsView.swift:128
      Capture of 'completion' with non-Sendable type '(Bool) -> Void' in a '@Sendable' closure
  damus/Core/Nostr/RelayConnection.swift:112
      Passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
  damus/Features/Posting/Views/PostView.swift:234
      Sending 'self.damus_state' risks causing data races; this is an error in the Swift 6 language mode
  damus/Features/FollowPack/Models/FollowPackModel.swift:40
      Sending 'self.damus_state.nostrNetwork' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/Router.swift:109
      Sending 'quote_reposts' risks causing data races; this is an error in the Swift 6 language mode
  damus/Features/Translations/Views/TranslateView.swift:76
      Sending 'self.damus_state.settings' risks causing data races; this is an error in the Swift 6 language mode
  damus/Features/Chat/ChatEventView.swift:219
      'onChange(of:perform:)' was deprecated in iOS 17.0: Use `onChange` with a two or zero parameter action closure instead.
  damus/Features/Posting/Models/DraftsModel.swift:261
      Capture of 'damus_state' with non-Sendable type 'DamusState' in a '@Sendable' closure
  damus/Features/Timeline/Models/HomeModel.swift:626
      Initialization of immutable value 'finishTime' was never used; consider replacing with assignment to '_' or removing it
  damus/Shared/Extensions/KFOptionSetter+.swift:69
      Capture of 'size_changed' with non-Sendable type '(CGSize) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
  damus/ContentView.swift:93
      Sending 'damus_state.settings' risks causing data races; this is an error in the Swift 6 language mode
  damus/Core/Storage/DamusUserDefaults.swift:119
      Static property 'app' is not concurrency-safe because non-'Sendable' type 'DamusUserDefaults' may have shared mutable state; this is an error in the Swift 6 language mode
  damus/Shared/Media/Camera/CameraPreview.swift:80
      'videoOrientation' was deprecated in iOS 17.0: Use -videoRotationAngle instead
  damus/Core/Networking/NostrNetworkManager/ProfilesManager.swift:65
      Immutable value 'value' was never used; consider replacing with '_' or removing it
  damus/Features/Profile/Views/EditMetadataView.swift:69
      Sending 'metadata_ev' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Media/Camera/Models/PhotoCaptureProcessor.swift:88
      Sending 'self' risks causing data races; this is an error in the Swift 6 language mode
  damus/Features/Settings/Models/UserSettingsStore.swift:99
      Static property 'bool_options' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/EventCache.swift:405
      Sending 'profiles' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/Theme.swift:17
      Main actor-isolated property 'isKeyWindow' can not be referenced from a nonisolated context
  nostrdb/src/nostrdb.c:801
      Implicit conversion loses integer precision: 'long' to 'int'
  damus/Features/Notifications/Models/NotificationsManager.swift:49
      Sending 'ev' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/Router.swift:202
      Main actor-isolated property 'original_event' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
  damus/Core/Networking/NostrNetworkManager/SubscriptionManager.swift:179
      Passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
  damus/Shared/Media/Camera/Models/CameraService.swift:640
      Capture of 'self' with non-Sendable type 'CameraService' in a '@Sendable' closure
  damus/ContentView.swift:711
      Initialization of immutable value 'new_relay_filters' was never used; consider replacing with assignment to '_' or removing it
  damus/Features/Profile/Models/ProfileModel.swift:179
      Passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
  damus/Shared/Media/Camera/Models/CameraService.swift:488
      Capture of 'self' with non-Sendable type 'CameraService' in an isolated closure
  damus/Features/Follows/Models/FollowingModel.swift:45
      Passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
  nostrdb/src/nostrdb.c:2854
      Implicit conversion loses integer precision: 'unsigned long' to 'int'
  nostrdb/src/nostrdb.c:4698
      Implicit conversion loses integer precision: 'long' to 'int'
  damus/Features/Events/Models/LoadableNostrEventView.swift:81
      Sending 'self.damus_state.nostrNetwork.reader' risks causing data races; this is an error in the Swift 6 language mode
  nostrdb/src/content_parser.c:456
      Implicit conversion loses integer precision: 'long' to 'uint32_t' (aka 'unsigned int')
  damus/Features/Search/Models/SearchHomeModel.swift:76
      Sending 'self' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/Router.swift:107
      Sending 'damusState' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Extensions/KFOptionSetter+.swift:70
      Capture of 'size_changed' with non-Sendable type '(CGSize) -> Void' in a '@Sendable' closure
  damus/Features/Posting/Views/PostView.swift:919
      Sending 'state.nostrNetwork' risks causing data races; this is an error in the Swift 6 language mode
  damus/Core/Networking/NostrNetworkManager/SubscriptionManager.swift:271
      Initialization of immutable value 'startTime' was never used; consider replacing with assignment to '_' or removing it
  damus/Shared/Media/Camera/Models/CameraService.swift:539
      Capture of 'self' with non-Sendable type 'CameraService' in an isolated closure
  damus/Features/Purple/Views/DamusPurpleVerifyNpubView.swift:49
      Sending 'self.damus_state.purple' risks causing data races; this is an error in the Swift 6 language mode
  damus/Features/Actions/ActionBar/Views/EventActionBar.swift:405
      'onChange(of:perform:)' was deprecated in iOS 17.0: Use `onChange` with a two or zero parameter action closure instead.
  nostrdb/Ndb.swift:79
      Static property 'db_files' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  damus/Shared/Media/Camera/Models/PhotoCaptureProcessor.swift:49
      Sending 'self' risks causing data races; this is an error in the Swift 6 language mode
  nostrdb/ccan/ccan/crypto/sha256/sha256.h:33
      '@p' command has no word arguments, expected 1
  nostrdb/Ndb.swift:678
      Reference to captured var 'subid' in concurrently-executing code; this is an error in the Swift 6 language mode
  nostrdb/src/nostrdb.c:6991
      Implicit conversion loses integer precision: 'long' to 'int'
  damus/Shared/Utilities/Router.swift:117
      Sending 'damusState' risks causing data races; this is an error in the Swift 6 language mode
  damus/Features/Profile/Views/ProfileView.swift:585
      Sending 'profiles' risks causing data races; this is an error in the Swift 6 language mode
  damus/Core/Storage/DamusState.swift:213
      Stored property 'contacts' of 'Sendable'-conforming struct 'NostrNetworkManagerDelegate' has non-Sendable type 'Contacts'; this is an error in the Swift 6 language mode
  damus/Features/Timeline/Models/HomeModel.swift:513
      Variable 'dms_filters' was never mutated; consider changing to 'let' constant
  damus/Shared/Utilities/Router.swift:94
      Sending 'settings' risks causing data races; this is an error in the Swift 6 language mode
  damus/Features/Search/Views/SearchResultsView.swift:188
      'onChange(of:perform:)' was deprecated in iOS 17.0: Use `onChange` with a two or zero parameter action closure instead.
  damus/Shared/Media/Camera/Models/CameraService.swift:518
      Capture of 'self' with non-Sendable type 'CameraService' in a '@Sendable' closure
  damus/Features/Relays/Views/AddRelayView.swift:95
      Sending 'self.state.nostrNetwork.userRelayList' risks causing data races; this is an error in the Swift 6 language mode
  damus/Core/Storage/DamusState.swift:212
      Stored property 'settings' of 'Sendable'-conforming struct 'NostrNetworkManagerDelegate' has non-Sendable type 'UserSettingsStore'; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/Router.swift:111
      Sending value of non-Sendable type '() -> EventsModel' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Media/Camera/Models/VideoCaptureProcessor.swift:73
      Sending 'self' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Media/CoreSVG.swift:22
      Var 'ImageWithCGSVGDocumentSEL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  damus/Core/Networking/NostrNetworkManager/UserRelayListManager.swift:244
      Immutable value 'value' was never used; consider replacing with '_' or removing it
  nostrdb/src/nostrdb.c:687
      Implicit conversion loses integer precision: 'const uint64_t' (aka 'const unsigned long long') to 'int'
  nostrdb/flatcc/builder.c:1143
      Code will never be executed
  damus/Features/Timeline/Models/HomeModel.swift:400
      Sending 'ev' risks causing data races; this is an error in the Swift 6 language mode
  nostrdb/mdb.c:4212
      Implicit conversion loses integer precision: 'unsigned long' to 'int'
  damus/Features/NIP05/Models/NIP05DomainEventsModel.swift:91
      Sending 'ev' risks causing data races; this is an error in the Swift 6 language mode
  nostrdb/mdb.c:2057
      Implicit conversion loses integer precision: 'MDB_ID' (aka 'unsigned long') to 'unsigned int'
  damus/Shared/Utilities/Router.swift:92
      Sending 'settings' risks causing data races; this is an error in the Swift 6 language mode
  damus/Features/FollowPack/Models/FollowPackModel.swift:48
      Sending 'self.damus_state' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/Router.swift:107
      Sending value of non-Sendable type '() -> EventsModel' risks causing data races; this is an error in the Swift 6 language mode
  damus/Features/Zaps/Models/ZapsModel.swift:35
      Passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/Router.swift:86
      Call to main actor-isolated initializer 'init(damus_state:settings:dismiss:showing_cache_clear_alert:showing_enable_animation_alert:enable_animation_toggle_is_user_initiated:)' in a synchronous nonisolated context
  damus/Shared/Utilities/Router.swift:127
      Call to main actor-isolated initializer 'init(damus_state:model:)' in a synchronous nonisolated context
  damus/Shared/Media/Models/MediaPicker.swift:97
      Call to main actor-isolated instance method 'chooseMedia(_:orderId:)' in a synchronous nonisolated context
  damus/Core/Networking/NostrNetworkManager/NostrNetworkManager.swift:70
      Passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
  damus/Core/Nostr/RelayPool.swift:322
      Immutable value 'note' was never used; consider replacing with '_' or removing it
  nostrdb/Ndb.swift:529
      Backward matching of the unlabeled trailing closure is deprecated; label the argument with 'with' to suppress this warning
  nostrdb/mdb.c:4824
      Implicit conversion loses integer precision: 'unsigned long long' to 'unsigned int'
  damus/Features/Posting/Models/DraftsModel.swift:261
      Sending 'damus_state' risks causing data races; this is an error in the Swift 6 language mode
  damus/Core/Nostr/RelayConnection.swift:183
      Sending 'self' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Media/Camera/Models/CameraService.swift:279
      Capture of 'self' with non-Sendable type 'CameraService' in a '@Sendable' closure
  damus/Features/Timeline/Models/HomeModel.swift:275
      No 'async' operations occur within 'await' expression
  damus/Features/Actions/ActionBar/Views/EventActionBar.swift:307
      Sending 'like_ev' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Media/Camera/Models/CameraService.swift:429
      Capture of 'self' with non-Sendable type 'CameraService' in a '@Sendable' closure
  nostrdb/mdb.c:6867
      Implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int'
  damus/Features/Timeline/Models/HomeModel.swift:772
      Passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
  damus/Features/Chat/ChatEventView.swift:249
      Sending 'self.damus_state.nostrNetwork.postbox' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Media/Models/MediaPicker.swift:87
      Call to main actor-isolated instance method 'attemptAcquireResourceAndChooseMedia(url:fallback:unprocessedEnum:processedEnum:orderId:)' in a synchronous nonisolated context
  damus/Shared/Media/Camera/Models/PhotoCaptureProcessor.swift:63
      Sending 'self' risks causing data races; this is an error in the Swift 6 language mode
  damus/Core/Networking/NostrNetworkManager/SubscriptionManager.swift:344
      Capture of 'self' with non-Sendable type 'NostrNetworkManager.SubscriptionManager' in an isolated closure; this is an error in the Swift 6 language mode
  damus/Core/Nostr/RelayConnection.swift:167
      Sending 'self' risks causing data races; this is an error in the Swift 6 language mode
  damus/Core/Networking/NostrNetworkManager/SubscriptionManager.swift:214
      Reference to captured var 'networkStreamTask' in concurrently-executing code; this is an error in the Swift 6 language mode
  damus/Features/Search/Models/SearchHomeModel.swift:56
      Capture of 'self' with non-Sendable type 'SearchHomeModel' in a '@Sendable' closure
  nostrdb/src/nostrdb.c:4449
      Unused function 'ndb_query_plan_name'
  damus/Features/Purple/Models/DamusPurple.swift:83
      Sending 'self' risks causing data races; this is an error in the Swift 6 language mode
  nostrdb/Ndb.swift:705
      Capture of 'filtersPointer' with non-Sendable type 'UnsafeMutablePointer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
  damus/Features/Posting/Views/PostView.swift:125
      Sending value of non-Sendable type 'NSMutableAttributedString' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/Router.swift:80
      Sending 'dms' risks causing data races; this is an error in the Swift 6 language mode
  damus/Core/Nostr/NostrEvent.swift:604
      'decrypt_dm(_:pubkey:content:encoding:)' is deprecated: Deprecated, please use NIP04.decryptContent instead
  damus/Core/Storage/DamusCacheManager.swift:12
      Static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  damus/Core/Networking/NostrNetworkManager/NostrNetworkManager.swift:112
      Sending 'event.event' risks causing data races; this is an error in the Swift 6 language mode
  damus/Features/NIP05/Models/NIP05DomainEventsModel.swift:87
      Sending 'ev' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Components/InvoiceView.swift:98
      Call to main actor-isolated instance method 'open(_:options:completionHandler:)' in a synchronous nonisolated context
  damus/Core/Networking/NostrNetworkManager/SubscriptionManager.swift:43
      Passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
  damus/Features/Actions/ActionBar/Views/EventActionBar.swift:250
      Non-Sendable type 'NostrEvent' (aka 'NdbNote') of property 'event' cannot exit main actor-isolated context; this is an error in the Swift 6 language mode
  damus/Shared/Media/Camera/Models/CameraService.swift:153
      Sending 'self' risks causing data races; this is an error in the Swift 6 language mode
  damus/Core/Storage/DamusState.swift:227
      Stored property 'relayModelCache' of 'Sendable'-conforming struct 'NostrNetworkManagerDelegate' has non-Sendable type 'RelayModelCache'; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/Router.swift:135
      Sending 'damusState' risks causing data races; this is an error in the Swift 6 language mode
  nostrscript/NostrScript.swift:350
      Passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
  damus/Shared/Media/Camera/Models/CameraService.swift:531
      Capture of 'self' with non-Sendable type 'CameraService' in an isolated closure
  nostrdb/Ndb.swift:673
      Mutation of captured var 'terminationStarted' in concurrently-executing code; this is an error in the Swift 6 language mode
  damus/Shared/Media/Models/ImageCarousel.swift:72
      Main actor-isolated property 'currentPage' can not be mutated from a nonisolated context
  damus/Shared/Utilities/EventCache.swift:405
      Non-Sendable 'NoteArtifacts'-typed result can not be returned from actor-isolated instance method 'render_note_content(ndb:ev:profiles:keypair:)' to nonisolated context; this is an error in the Swift 6 language mode
  nostrdb/src/nostrdb.c:6235
      Implicit conversion loses integer precision: 'long' to 'uint32_t' (aka 'unsigned int')
  nostrdb/src/nostrdb.c:332
      Implicit conversion loses integer precision: 'long' to 'int'
  damus/Features/Onboarding/Views/SaveKeysView.swift:161
      Call to actor-isolated instance method 'send_raw_to_local_ndb' in a synchronous main actor-isolated context
  damus/Features/Actions/ActionBar/Views/EventActionBar.swift:307
      Sending 'self.damus_state.nostrNetwork.postbox' risks causing data races; this is an error in the Swift 6 language mode
  damus/ContentView.swift:376
      Sending 'self.damus_state.some.nostrNetwork.postbox' risks causing data races; this is an error in the Swift 6 language mode
  damus/Features/Search/Models/SearchModel.swift:46
      Sending 'self' risks causing data races; this is an error in the Swift 6 language mode
  damus/Features/Chat/Models/ThreadModel.swift:186
      Result of call to 'add_event(_:target:)' is unused
  damus/Shared/Utilities/DebouncedOnChange.swift:37
      'onChange(of:perform:)' was deprecated in iOS 17.0: Use `onChange` with a two or zero parameter action closure instead.
  damus/damusApp.swift:130
      Main actor-isolated class property 'current' can not be referenced from a nonisolated context
  nostrdb/src/protected_queue.h:94
      Implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int'
  damus/Shared/Utilities/Router.swift:60
      Sending 'followers' risks causing data races; this is an error in the Swift 6 language mode
  damus/TestData.swift:22
      Let 'test_event_holder' is not concurrency-safe because non-'Sendable' type 'EventHolder' may have shared mutable state; this is an error in the Swift 6 language mode
  damus/Features/Follows/Models/FollowersModel.swift:40
      Passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
  nostrdb/Ndb.swift:672
      Reference to captured var 'terminationStarted' in concurrently-executing code; this is an error in the Swift 6 language mode
  damus/ContentView.swift:797
      Sending 'damus_state.nostrNetwork.postbox' risks causing data races; this is an error in the Swift 6 language mode
  damus/Core/Networking/NostrNetworkManager/NostrNetworkManager.swift:47
      Sending 'reader' risks causing data races; this is an error in the Swift 6 language mode
  damus/Shared/Media/CoreSVG.swift:17
      Var 'CGSVGDocumentCreateFromData' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  damus/Shared/Utilities/Router.swift:72
      Call to main actor-isolated initializer 'init(state:)' in a synchronous nonisolated context
  damus/Features/Purple/Models/DamusPurpleEnvironment.swift:11
      Static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  damus/Features/Onboarding/Views/LoginView.swift:225
      Call to main actor-isolated initializer 'init()' in a synchronous nonisolated context
  damus/Shared/Utilities/EventCache.swift:432
      Pattern that the region based isolation checker does not understand how to check. Please file a bug; this is an error in the Swift 6 language mode
  damus/TestData.swift:58
      Let 'test_zap_request_ev' is not concurrency-safe because non-'Sendable' type 'NostrEvent' (aka 'NdbNote') may have shared mutable state; this is an error in the Swift 6 language mode
  damus/Shared/Media/Camera/Models/CameraService.swift:488
      Capture of 'self' with non-Sendable type 'CameraService' in a '@Sendable' closure
  damus/Features/FollowPack/Models/FollowPackModel.swift:48
      Sending 'event' risks causing data races; this is an error in the Swift 6 language mode
  damus/Features/Notifications/Views/NotificationItemView.swift:94
      Let 'test_notification_item' is not concurrency-safe because non-'Sendable' type 'NotificationItem' may have shared mutable state; this is an error in the Swift 6 language mode
  nostrdb/src/nostrdb.c:6820
      Implicit conversion loses integer precision: 'long' to 'uint32_t' (aka 'unsigned int')
  damus/Features/Status/Models/UserStatus.swift:129
      Mutation of captured var 'new_val' in concurrently-executing code
  nostrscript/NostrScript.swift:315
      Passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
  nostrdb/src/nostrdb.c:3776
      Implicit conversion loses integer precision: 'long' to 'int'
  nostrdb/Ndb.swift:523
      Backward matching of the unlabeled trailing closure is deprecated; label the argument with 'with' to suppress this warning
  damus/Features/Timeline/Models/HomeModel.swift:603
      Capture of 'self' with non-Sendable type 'HomeModel' in a '@Sendable' closure
  damus/Core/Networking/NostrNetworkManager/SubscriptionManager.swift:145
      Passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
  nostrdb/mdb.c:3992
      Implicit conversion loses integer precision: 'long' to 'unsigned int'
  damus/Shared/Utilities/Router.swift:76
      Call to main actor-isolated initializer 'init(state:)' in a synchronous nonisolated context
  damus/Shared/Extensions/OffsetExtension.swift:70
      Main actor-isolated property 'windows' can not be referenced from a nonisolated context
  damus/Shared/Media/Models/ImageCarousel.swift:10
      Add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
  damus/Shared/Media/Camera/Models/CameraService.swift:690
      Capture of 'self' with non-Sendable type 'CameraService' in a '@Sendable' closure
  nostrdb/mdb.c:8779
      Implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int'
  damus/Core/Networking/NostrNetworkManager/NostrNetworkManager.swift:77
      Immutable value 'value' was never used; consider replacing with '_' or removing it
  damus/Features/Timeline/Models/HomeModel.swift:400
      Sending 'self' risks causing data races; this is an error in the Swift 6 language mode
  nostrdb/Ndb.swift:675
      Mutation of captured var 'streaming' in concurrently-executing code; this is an error in the Swift 6 language mode
  nostrdb/mdb.c:2923
      Implicit conversion loses integer precision: 'pgno_t' (aka 'unsigned long') to 'int'