TF-78 Implement mark as unread when touch the "eye slash" icon on the top of screen EmailView
This commit is contained in:
@@ -105,12 +105,10 @@ class EmailAPI {
|
||||
});
|
||||
}
|
||||
|
||||
Future<bool> markAsRead(AccountId accountId, EmailId emailId, bool unread) async {
|
||||
Future<bool> markAsRead(AccountId accountId, EmailId emailId, ReadActions readAction) async {
|
||||
final setEmailMethod = SetEmailMethod(accountId)
|
||||
..addUpdates({
|
||||
emailId.id: PatchObject({
|
||||
KeyWordIdentifier.emailSeen.generatePath() : unread ? null : true
|
||||
})
|
||||
emailId.id: KeyWordIdentifier.emailSeen.generateReadActionPath(readAction)
|
||||
});
|
||||
|
||||
final requestBuilder = JmapRequestBuilder(httpClient, ProcessingInvocation());
|
||||
|
||||
Reference in New Issue
Block a user