File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -1227,6 +1227,20 @@ export default {
1227
1227
this .loadingIndicatorCc = addressType === ' cc'
1228
1228
this .loadingIndicatorBcc = addressType === ' bcc'
1229
1229
this .recipientSearchTerms [addressType] = term
1230
+
1231
+ // Autocomplete from own identifies (useful for testing)
1232
+ const accounts = this .accounts .filter ((a ) => ! a .isUnified )
1233
+ const selfRecipients = accounts
1234
+ .filter (
1235
+ account => account .emailAddress .toLowerCase ().indexOf (term .toLowerCase ()) !== - 1
1236
+ || account .name .toLowerCase ().indexOf (term .toLowerCase ()) !== - 1 ,
1237
+ )
1238
+ .map (account => ({
1239
+ email: account .emailAddress ,
1240
+ label: account .name ,
1241
+ }))
1242
+ this .autocompleteRecipients = uniqBy (' email' )(this .autocompleteRecipients .concat (selfRecipients))
1243
+
1230
1244
debouncedSearch (term).then ((results ) => {
1231
1245
if (addressType === ' to' ) {
1232
1246
this .loadingIndicatorTo = false
You can’t perform that action at this time.
0 commit comments