Skip to content

Commit

Permalink
Merge pull request #1688 from planetary-social/bdm/fix-crash
Browse files Browse the repository at this point in the history
fix crash when tapping Post button on macOS #1687
  • Loading branch information
mplorentz authored Nov 1, 2024
2 parents 2b4c812 + 380d9e8 commit aca6f04
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

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

### Internal Changes

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 aca6f04

Please sign in to comment.