mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-03-01 02:41:26 -05:00
update chat message ack state on main thread
This commit is contained in:
parent
024e59a982
commit
c3b7289943
@ -232,11 +232,13 @@ public abstract class SupportManager {
|
||||
getAllChatMessages(ackMessage.getSourceId()).stream()
|
||||
.filter(msg -> msg.getUid().equals(ackMessage.getSourceUid()))
|
||||
.forEach(msg -> {
|
||||
UserThread.execute(() -> {
|
||||
if (ackMessage.isSuccess())
|
||||
msg.setAcknowledged(true);
|
||||
else
|
||||
msg.setAckError(ackMessage.getErrorMessage());
|
||||
});
|
||||
});
|
||||
requestPersistence();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user