TF-78 Implement mark as unread when touch the "eye slash" icon on the top of screen EmailView

This commit is contained in:
dab246
2021-09-15 13:12:15 +07:00
committed by Dat H. Pham
parent 8721b08f33
commit 5fd305d102
29 changed files with 462 additions and 293 deletions
@@ -1,8 +1,15 @@
import 'package:jmap_dart_client/jmap/core/patch_object.dart';
import 'package:jmap_dart_client/jmap/mail/email/keyword_identifier.dart';
import 'package:model/email/read_actions.dart';
extension KeyWordIdentifierExtension on KeyWordIdentifier {
String generatePath() {
String _generatePath() {
return '${PatchObject.keywordsProperty}/$value';
}
PatchObject generateReadActionPath(ReadActions readActions) {
return PatchObject({
_generatePath(): readActions == ReadActions.markAsRead ? true : null
});
}
}