Skip to content

Commit

Permalink
fix crash when tapping Post button on macOS #1687
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanmontz committed Nov 1, 2024
1 parent 63c3e2e commit 850f4b1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Release Notes
- Fix crash when tapping Post button on macOS. [#1687](https://github.com/planetary-social/nos/issues/1687)

### Internal Changes

## [1.0.1] - 2024-10-28Z

### Release Notes
Expand Down
2 changes: 2 additions & 0 deletions Nos/Views/AppView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ struct AppView: View {
@Dependency(\.crashReporting) private var crashReporting
@Dependency(\.userDefaults) private var userDefaults
@Environment(CurrentUser.self) var currentUser
@Environment(RelayService.self) private var relayService

@State private var lastSelectedTab = AppDestination.home
@State private var showNIP05Wizard = false
Expand Down Expand Up @@ -163,6 +164,7 @@ struct AppView: View {
.sheet(isPresented: $showNewPost) {
NoteComposer(initialContents: newPostContents, isPresented: $showNewPost)
.environment(currentUser)
.environment(relayService)
.interactiveDismissDisabled()
}
}
Expand Down

0 comments on commit 850f4b1

Please sign in to comment.