TF-174 Order the ThreadView base on ReceivedAt to uniform with load more

This commit is contained in:
Dat PHAM HOANG
2021-10-14 17:03:25 +07:00
committed by Dat H. Pham
parent 630758e11a
commit d8dd5ea31b
4 changed files with 5 additions and 5 deletions
@@ -9,8 +9,8 @@ extension PresentationEmailExtension on PresentationEmail {
int numberOfAllEmailAddress() => to.numberEmailAddress() + cc.numberEmailAddress() + bcc.numberEmailAddress();
String getEmailDateTime(String newLocale, {String? pattern}) {
final emailTime = sentAt ?? receivedAt;
String getReceivedAt(String newLocale, {String? pattern}) {
final emailTime = receivedAt;
if (emailTime != null) {
return emailTime.formatDate(
pattern: pattern ?? emailTime.value.toLocal().toPattern(),