You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@james.apache.org by rc...@apache.org on 2021/01/12 11:02:08 UTC
[james-project] 09/20: JAMES-3473 Remove duplicated sort condition
This is an automated email from the ASF dual-hosted git repository.
rcordier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git
commit 9f72a00b3c6e7ef1d23e3fec7d93eb4131f582dc
Author: LanKhuat <dl...@linagora.com>
AuthorDate: Tue Jan 5 10:35:59 2021 +0700
JAMES-3473 Remove duplicated sort condition
---
.../org/apache/james/jmap/memory/change/MemoryEmailChangeRepository.java | 1 -
1 file changed, 1 deletion(-)
diff --git a/server/data/data-jmap/src/main/java/org/apache/james/jmap/memory/change/MemoryEmailChangeRepository.java b/server/data/data-jmap/src/main/java/org/apache/james/jmap/memory/change/MemoryEmailChangeRepository.java
index 994dd65..4f8ee2c 100644
--- a/server/data/data-jmap/src/main/java/org/apache/james/jmap/memory/change/MemoryEmailChangeRepository.java
+++ b/server/data/data-jmap/src/main/java/org/apache/james/jmap/memory/change/MemoryEmailChangeRepository.java
@@ -60,7 +60,6 @@ public class MemoryEmailChangeRepository implements EmailChangeRepository {
public Mono<State> getLatestState(AccountId accountId) {
return allChanges(accountId)
.filter(change -> !change.isDelegated())
- .sort(Comparator.comparing(EmailChange::getDate))
.map(EmailChange::getState)
.last(State.INITIAL);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org