Clean up optimistic messages.

This commit is contained in:
Ben Rog-Wilhelm 2023-08-27 09:35:23 -05:00
parent 3f5f4b7e4b
commit 61cecf5a70

View file

@ -100,13 +100,11 @@ export function ChatProvider({ children }: PropsWithChildren) {
addMessage({
id: OPTIMISTIC_MESSAGE_ID,
username,
user_id: id,
avatar,
text: draft,
text_html: draft,
time: new Date().getTime() / 1000,
quotes: null,
dm: false,
});
}