update chat message ack state on main thread

This commit is contained in:
woodser 2025-02-16 20:56:31 -05:00
parent 024e59a982
commit c3b7289943

View File

@ -232,11 +232,13 @@ public abstract class SupportManager {
getAllChatMessages(ackMessage.getSourceId()).stream() getAllChatMessages(ackMessage.getSourceId()).stream()
.filter(msg -> msg.getUid().equals(ackMessage.getSourceUid())) .filter(msg -> msg.getUid().equals(ackMessage.getSourceUid()))
.forEach(msg -> { .forEach(msg -> {
UserThread.execute(() -> {
if (ackMessage.isSuccess()) if (ackMessage.isSuccess())
msg.setAcknowledged(true); msg.setAcknowledged(true);
else else
msg.setAckError(ackMessage.getErrorMessage()); msg.setAckError(ackMessage.getErrorMessage());
}); });
});
requestPersistence(); requestPersistence();
} }
} }