TF-82 Create an email as drafts

This commit is contained in:
dab246
2022-02-21 11:52:23 +07:00
committed by Dat H. Pham
parent e739e23c62
commit ea29405f08
14 changed files with 273 additions and 51 deletions
@@ -86,4 +86,13 @@ class EmailDataSourceImpl extends EmailDataSource {
throw error;
});
}
@override
Future<bool> saveEmailAsDrafts(AccountId accountId, Email email) {
return Future.sync(() async {
return await emailAPI.saveEmailAsDrafts(accountId, email);
}).catchError((error) {
throw error;
});
}
}