File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,17 @@ struct AutocompletionView: View {
79
79
)
80
80
var autocompleteRecipients = autocompleteContacts. map { Recipient ( email: $0. email, name: $0. name) }
81
81
82
- let realResults = autocompleteRecipients. filter { !addedRecipients. map ( \. email) . contains ( $0. email) }
82
+ let autocompleteGroupContact = mailboxManager. contactManager. frozenGroupContacts ( matching: trimmedSearch, fetchLimit: nil )
83
+
84
+ // TODO: Find group or organisation name
85
+ var autocompleteGroupRecipients = autocompleteGroupContact. map { Recipient (
86
+ email: " Afficher nom groupe ou organisation ? " ,
87
+ name: " Groupe/carnet ? \( $0. name) "
88
+ ) }
89
+
90
+ var result = autocompleteRecipients + autocompleteGroupRecipients
91
+
92
+ let realResults = autocompleteRecipients. filter { !addedRecipients. map ( \. email) . contains ( $0. email) }
83
93
84
94
shouldAddUserProposal = !( realResults. count == 1 && realResults. first? . email == textDebounce. text)
85
95
if shouldAddUserProposal {
You can’t perform that action at this time.
0 commit comments