mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-04-16 19:22:12 +00:00
update chat message ack state on main thread
This commit is contained in:
parent
024e59a982
commit
c3b7289943
1 changed files with 6 additions and 4 deletions
|
@ -232,10 +232,12 @@ public abstract class SupportManager {
|
|||
getAllChatMessages(ackMessage.getSourceId()).stream()
|
||||
.filter(msg -> msg.getUid().equals(ackMessage.getSourceUid()))
|
||||
.forEach(msg -> {
|
||||
if (ackMessage.isSuccess())
|
||||
msg.setAcknowledged(true);
|
||||
else
|
||||
msg.setAckError(ackMessage.getErrorMessage());
|
||||
UserThread.execute(() -> {
|
||||
if (ackMessage.isSuccess())
|
||||
msg.setAcknowledged(true);
|
||||
else
|
||||
msg.setAckError(ackMessage.getErrorMessage());
|
||||
});
|
||||
});
|
||||
requestPersistence();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue