mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 01:41:11 +01:00
Refactor: Rename method
This commit is contained in:
parent
659fe15b8d
commit
320e5f1aef
@ -79,7 +79,7 @@ public class CleanupMailboxMessages {
|
||||
}
|
||||
|
||||
private void cleanupMailboxMessages(List<Trade> trades) {
|
||||
mailboxMessageService.getMyMailBoxMessages()
|
||||
mailboxMessageService.getMyDecryptedMessages()
|
||||
.forEach(message -> handleDecryptedMessageWithPubKey(message, trades));
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user