Fix order of optimistic chat messages

This commit is contained in:
Alex Gleason
2022-12-07 16:18:03 -06:00
parent dad6244c7d
commit 3acc95447f

View File

@ -253,7 +253,6 @@ const useChatActions = (chatId: string) => {
return {
...page,
result: [
...page.result,
normalizeChatMessage({
content: variables.content,
id: String(Number(new Date())),
@ -262,6 +261,7 @@ const useChatActions = (chatId: string) => {
pending: true,
unread: true,
}),
...page.result,
],
};
}