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() getAllChatMessages(ackMessage.getSourceId()).stream()
.filter(msg -> msg.getUid().equals(ackMessage.getSourceUid())) .filter(msg -> msg.getUid().equals(ackMessage.getSourceUid()))
.forEach(msg -> { .forEach(msg -> {
if (ackMessage.isSuccess()) UserThread.execute(() -> {
msg.setAcknowledged(true); if (ackMessage.isSuccess())
else msg.setAcknowledged(true);
msg.setAckError(ackMessage.getErrorMessage()); else
msg.setAckError(ackMessage.getErrorMessage());
});
}); });
requestPersistence(); requestPersistence();
} }