sforkowany z mirror/soapbox
Fix order of optimistic chat messages
rodzic
dad6244c7d
commit
3acc95447f
|
@ -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,
|
||||
],
|
||||
};
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue