TF-79 Mark as star/unstar in email detailed view

This commit is contained in:
dab246
2021-09-20 12:50:51 +07:00
committed by Dat H. Pham
parent a12efc8d2b
commit 5d7fd819c8
15 changed files with 176 additions and 1 deletions
@@ -77,4 +77,13 @@ class EmailDataSourceImpl extends EmailDataSource {
throw error;
});
}
@override
Future<bool> markAsImportant(AccountId accountId, EmailId emailId, ImportantAction importantAction) {
return Future.sync(() async {
return await emailAPI.markAsImportant(accountId, emailId, importantAction);
}).catchError((error) {
throw error;
});
}
}