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,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();
}