fix: Email content disappears after marking as star/unstar when thread is disabled

This commit is contained in:
dab246
2025-10-17 10:08:43 +07:00
committed by Dat H. Pham
parent 474a8806e2
commit bfe80bdc78
5 changed files with 55 additions and 19 deletions
@@ -202,4 +202,9 @@ extension PresentationEmailExtension on PresentationEmail {
MailboxId? get firstMailboxIdAvailable =>
mailboxIds?.entries.firstWhereOrNull((element) => element.value)?.key;
void resyncKeywords(Map<KeyWordIdentifier, bool> newKeywords) {
keywords?.addAll(newKeywords);
keywords?.removeWhere((key, value) => !value);
}
}