Skip to content

Commit

Permalink
Use DismissAction in ContactDetails
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewrfennell authored and tmolitor-stud-tu committed Sep 10, 2024
1 parent cfdfbfb commit 3f8c806
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Monal/Classes/ContactDetails.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

struct ContactDetails: View {
@Environment(\.presentationMode) private var presentationMode
@Environment(\.dismiss) private var dismiss
@State private var ownRole = kMucRoleParticipant
@State private var ownAffiliation = kMucAffiliationNone
@StateObject var contact: ObservableKVOWrapper<MLContact>
Expand Down Expand Up @@ -490,7 +490,7 @@ struct ContactDetails: View {
if let delegate = self.delegate {
delegate.dismiss()
} else {
self.presentationMode.wrappedValue.dismiss()
self.dismiss()
}
}
)
Expand Down

0 comments on commit 3f8c806

Please sign in to comment.