TF-1045 Remove wrong conditions to append more items after loading more

This commit is contained in:
Dat PHAM HOANG
2022-10-05 16:40:18 +07:00
committed by Dat H. Pham
parent 776dbf749e
commit a363435de2
2 changed files with 12 additions and 8 deletions
@@ -244,9 +244,6 @@ class ThreadRepositoryImpl extends ThreadRepository {
properties: emailRequest.properties)
.then((response) {
var listEmails = response.emailList;
if (listEmails != null && listEmails.isNotEmpty) {
listEmails = listEmails.where((email) => email.id != emailRequest.lastEmailId).toList();
}
return EmailsResponse(emailList: listEmails, state: response.state);
});