diff --git a/Monal/Classes/ContactDetails.swift b/Monal/Classes/ContactDetails.swift index 175218436..911d1f580 100644 --- a/Monal/Classes/ContactDetails.swift +++ b/Monal/Classes/ContactDetails.swift @@ -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 @@ -490,7 +490,7 @@ struct ContactDetails: View { if let delegate = self.delegate { delegate.dismiss() } else { - self.presentationMode.wrappedValue.dismiss() + self.dismiss() } } )