Fix order of optimistic chat messages

revert-fa4bd20d
Alex Gleason 2022-12-07 16:18:03 -06:00
rodzic dad6244c7d
commit 3acc95447f
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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,
],
};
}