TF-38 Fix bug sort by sentAt for ThreadView

This commit is contained in:
dab246
2021-08-25 09:52:25 +07:00
committed by Dat H. Pham
parent 4afb309ad4
commit 9b79609854
@@ -63,6 +63,12 @@ class ThreadAPI {
final resultList = result.parse<GetEmailResponse>(
getEmailInvocation.methodCallId, GetEmailResponse.deserialize);
if (sort != null && resultList != null) {
sort.forEach((comparator) {
resultList..sortEmails(comparator);
});
}
return resultList == null ? [] : resultList.list;
}
}