TF-838 Remove updateState while get emails in emptyTrash action
This commit is contained in:
@@ -314,10 +314,6 @@ class ThreadRepositoryImpl extends ThreadRepository {
|
|||||||
filter: EmailFilterCondition(inMailbox: trashMailboxId, before: lastEmail?.receivedAt),
|
filter: EmailFilterCondition(inMailbox: trashMailboxId, before: lastEmail?.receivedAt),
|
||||||
properties: Properties({EmailProperty.id}));
|
properties: Properties({EmailProperty.id}));
|
||||||
|
|
||||||
if (emailsResponse.state != null) {
|
|
||||||
await _updateState(emailsResponse.state!);
|
|
||||||
}
|
|
||||||
|
|
||||||
var newEmailList = emailsResponse.emailList ?? <Email>[];
|
var newEmailList = emailsResponse.emailList ?? <Email>[];
|
||||||
if (lastEmail != null) {
|
if (lastEmail != null) {
|
||||||
newEmailList = newEmailList.where((email) => email.id != lastEmail!.id).toList();
|
newEmailList = newEmailList.where((email) => email.id != lastEmail!.id).toList();
|
||||||
|
|||||||
Reference in New Issue
Block a user