Refactor: Rename method

This commit is contained in:
chimp1984 2021-01-11 15:27:58 -05:00
parent 659fe15b8d
commit 320e5f1aef
No known key found for this signature in database
GPG Key ID: 9801B4EC591F90E3
3 changed files with 3 additions and 4 deletions

View File

@ -79,7 +79,7 @@ public class CleanupMailboxMessages {
}
private void cleanupMailboxMessages(List<Trade> trades) {
mailboxMessageService.getMyMailBoxMessages()
mailboxMessageService.getMyDecryptedMessages()
.forEach(message -> handleDecryptedMessageWithPubKey(message, trades));
}

View File

@ -88,7 +88,7 @@ public abstract class TradeProtocol implements DecryptedDirectMessageListener, D
// change and leave that for a later PR
UserThread.runAfter(() -> {
mailboxMessageService.addDecryptedMailboxListener(this);
mailboxMessageService.getMyMailBoxMessages()
mailboxMessageService.getMyDecryptedMessages()
.forEach(this::handleDecryptedMessageWithPubKey);
}, 100, TimeUnit.MILLISECONDS);
}

View File

@ -283,8 +283,7 @@ public class MailboxMessageService implements SetupListener, RequestDataManager.
}
}
//todo rename
public Set<DecryptedMessageWithPubKey> getMyMailBoxMessages() {
public Set<DecryptedMessageWithPubKey> getMyDecryptedMessages() {
log.trace("getMyMailBoxMessages mailboxItemsByUid={}", mailboxItemsByUid);
return mailboxItemsByUid.values().stream()
.filter(MailboxItem::isMine)