diff --git a/app/features/chat/ChatProvider.tsx b/app/features/chat/ChatProvider.tsx index 9876bbfce..965f423bf 100644 --- a/app/features/chat/ChatProvider.tsx +++ b/app/features/chat/ChatProvider.tsx @@ -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, ); },