TF-1923 Store list new email by ascending

(cherry picked from commit e2ad80e20bca3d72bf9799e957b995a24c0844c8)
This commit is contained in:
dab246
2023-06-21 03:23:30 +07:00
committed by Dat H. Pham
parent ad5136b117
commit 125f1a6f13
15 changed files with 109 additions and 80 deletions
@@ -406,7 +406,7 @@ class SingleEmailController extends BaseController with AppLoaderMixin {
if (PlatformInfo.isMobile) {
final detailedEmail = DetailedEmail(
emailId: currentEmail!.id!,
createdTime: DateTime.now(),
createdTime: currentEmail?.receivedAt?.value ?? DateTime.now(),
attachments: attachments,
headers: currentEmail?.emailHeader?.toSet(),
keywords: currentEmail?.keywords,