TF-78 Implement automatically marked as read when open one email

This commit is contained in:
dab246
2021-09-14 10:26:54 +07:00
committed by Dat H. Pham
parent c4b3109294
commit 3219aedc70
11 changed files with 113 additions and 2 deletions
@@ -27,4 +27,13 @@ class EmailDataSourceImpl extends EmailDataSource {
throw error;
});
}
@override
Future<bool> markAsRead(AccountId accountId, EmailId emailId, bool unread) {
return Future.sync(() async {
return await emailAPI.markAsRead(accountId, emailId, unread);
}).catchError((error) {
throw error;
});
}
}