Refactor: Rename

This commit is contained in:
chimp1984 2021-01-10 18:57:10 -05:00
parent 4c7b56072f
commit 504fb2e6a1
No known key found for this signature in database
GPG Key ID: 9801B4EC591F90E3
3 changed files with 3 additions and 3 deletions

View File

@ -79,7 +79,7 @@ public class CleanupMailboxMessages {
}
private void cleanupMailboxMessages(List<Trade> trades) {
mailboxMessageService.getMailBoxMessages()
mailboxMessageService.getMyMailBoxMessages()
.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.getMailBoxMessages()
mailboxMessageService.getMyMailBoxMessages()
.forEach(this::handleDecryptedMessageWithPubKey);
}, 100, TimeUnit.MILLISECONDS);
}

View File

@ -245,7 +245,7 @@ public class MailboxMessageService implements SetupListener, RequestDataManager.
}
}
public Set<DecryptedMessageWithPubKey> getMailBoxMessages() {
public Set<DecryptedMessageWithPubKey> getMyMailBoxMessages() {
return mailboxItemsByUid.values().stream()
.filter(list -> !list.isEmpty())
.map(list -> list.get(0))