TF-3334 Remove Email/get of mark as read & mark as star action

This commit is contained in:
dab246
2024-12-19 00:50:13 +07:00
committed by Dat H. Pham
parent 75231636e2
commit eb51e9b3b1
27 changed files with 419 additions and 345 deletions
@@ -217,11 +217,14 @@ extension PresentationEmailExtension on PresentationEmail {
..searchSnippetPreview = searchSnippetPreview;
}
PresentationEmail updateKeywords(Map<KeyWordIdentifier, bool>? newKeywords) {
PresentationEmail updateKeywords(Map<KeyWordIdentifier, bool> newKeywords) {
final combinedMap = {...(keywords ?? {}), ...newKeywords};
combinedMap.removeWhere((key, value) => !value);
log('PresentationEmailExtension::updateKeywords:combinedMap = $combinedMap');
return PresentationEmail(
id: this.id,
blobId: blobId,
keywords: newKeywords,
keywords: combinedMap,
size: size,
receivedAt: receivedAt,
hasAttachment: hasAttachment,