TF-119 Filter messages with unread, attachments, starred
This commit is contained in:
@@ -111,7 +111,7 @@ extension PresentationEmailExtension on PresentationEmail {
|
||||
}
|
||||
}
|
||||
|
||||
PresentationEmail toSearchPresentationEmail(Map<MailboxId, PresentationMailbox> mapMailboxes) {
|
||||
PresentationEmail toSearchPresentationEmail(Map<MailboxId, PresentationMailbox> mapMailboxes, Random random) {
|
||||
mailboxIds?.removeWhere((key, value) => !value);
|
||||
|
||||
final listMailboxId = mailboxIds?.entries
|
||||
@@ -124,6 +124,8 @@ extension PresentationEmailExtension on PresentationEmail {
|
||||
.where((mailboxName) => mailboxName != null)
|
||||
.toList();
|
||||
|
||||
final newAvatarColors = AppColor.mapGradientColor[random.nextInt(AppColor.mapGradientColor.length)];
|
||||
|
||||
return PresentationEmail(
|
||||
this.id,
|
||||
keywords: keywords,
|
||||
@@ -141,7 +143,7 @@ extension PresentationEmailExtension on PresentationEmail {
|
||||
mailboxIds: mailboxIds,
|
||||
mailboxNames: listMailboxName,
|
||||
selectMode: selectMode,
|
||||
avatarColors: avatarColors
|
||||
avatarColors: avatarColors ?? newAvatarColors
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user