TF-1749 Handle delete old email after update draft email
(cherry picked from commit 1a1331a723e191e3cae8db138f2d0fec71b4c87a)
This commit is contained in:
@@ -109,9 +109,9 @@ class EmailDataSourceImpl extends EmailDataSource {
|
||||
}
|
||||
|
||||
@override
|
||||
Future<Email> updateEmailDrafts(Session session, AccountId accountId, Email newEmail, EmailId oldEmailId) {
|
||||
Future<Email> updateEmailDrafts(Session session, AccountId accountId, Email newEmail) {
|
||||
return Future.sync(() async {
|
||||
return await emailAPI.updateEmailDrafts(session, accountId, newEmail, oldEmailId);
|
||||
return await emailAPI.updateEmailDrafts(session, accountId, newEmail);
|
||||
}).catchError(_exceptionThrower.throwException);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user