Skip to content

Commit

Permalink
Fix KVOObserver usage in ContactEntry
Browse files Browse the repository at this point in the history
  • Loading branch information
tmolitor-stud-tu committed Dec 27, 2024
1 parent 329ea78 commit c1eb430
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Monal/Classes/ContactEntry.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@
//

struct ContactEntry<AdditionalContent: View>: View {
let contact: ObservableKVOWrapper<MLContact>
let selfnotesPrefix: Bool
let fallback: String?
@ViewBuilder let additionalContent: () -> AdditionalContent

@StateObject let contact: ObservableKVOWrapper<MLContact>

init(contact:ObservableKVOWrapper<MLContact>, selfnotesPrefix: Bool = true, fallback: String? = nil) where AdditionalContent == EmptyView {
self.init(contact:contact, selfnotesPrefix:selfnotesPrefix, fallback:fallback, additionalContent:{ EmptyView() })
}
Expand Down

0 comments on commit c1eb430

Please sign in to comment.