mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 09:52:23 +01:00
Keep first dispute chat msg when clearing sensitive data.
Fixes https://github.com/bisq-network/bisq/pull/6001#issuecomment-1049710029
This commit is contained in:
parent
70752a1ffd
commit
f430243b5e
@ -352,8 +352,10 @@ public final class Dispute implements NetworkPayload, PersistablePayload {
|
||||
}
|
||||
|
||||
public boolean removeAllChatMessages() {
|
||||
if (chatMessages.size() > 0) {
|
||||
chatMessages.clear();
|
||||
if (chatMessages.size() > 1) {
|
||||
// removes all chat except the initial guidelines message.
|
||||
String firstMessageUid = chatMessages.get(0).getUid();
|
||||
chatMessages.removeIf((msg) -> !msg.getUid().equals(firstMessageUid));
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user