Don't modify chat messages array in place
Some checks are pending
E2E Tests / e2e (push) Waiting to run
Tests and checks on push / run-checks-and-tests (push) Waiting to run
Updates translation progress / update-translation-progress-issue (push) Waiting to run

This commit is contained in:
Kalle
2026-04-11 11:20:56 +03:00
parent 2d92f2fc45
commit fa9ac427bd

View File

@@ -402,7 +402,7 @@ function ChatProviderInner({
const messagesForRoom = React.useCallback(
(chatCode: string) => {
return (messagesByRoom[chatCode] ?? []).sort(
return (messagesByRoom[chatCode] ?? []).toSorted(
(a, b) => a.timestamp - b.timestamp,
);
},