TF-548 Inject TmailContactDataSource in composer of TMail

This commit is contained in:
dab246
2022-05-13 10:48:38 +07:00
committed by Dat H. Pham
parent 7e2786089d
commit 909db3c5df
12 changed files with 54 additions and 26 deletions
@@ -1,4 +1,4 @@
enum ContactSuggestionSource {
all, localContact, deviceContact
all, tMailContact, deviceContact
}
@@ -12,7 +12,9 @@ class GetAutoCompleteWithDeviceContactInteractor {
final GetAutoCompleteInteractor _getAutoCompleteInteractor;
final GetDeviceContactSuggestionsInteractor _getDeviceContactSuggestionsInteractor;
GetAutoCompleteWithDeviceContactInteractor(this._getAutoCompleteInteractor, this._getDeviceContactSuggestionsInteractor);
GetAutoCompleteWithDeviceContactInteractor(
this._getAutoCompleteInteractor,
this._getDeviceContactSuggestionsInteractor);
Future<Either<Failure, Success>> execute(AutoCompletePattern autoCompletePattern) async {
try {