Remove strict on KaTeX, change error.

This commit is contained in:
Paul
2021-07-31 11:04:31 +01:00
parent 719e5b4dd8
commit 463aa79356
4 changed files with 3 additions and 26 deletions

View File

@@ -65,29 +65,7 @@ export const SimpleRenderer: RendererRoutines = {
{ type: "StayAtBottom", smooth: SMOOTH_SCROLL_ON_RECEIVE },
);
},
edit: async (renderer, id, patch) => {
// ! FIXME: verify if this is needed anymore
/*const channel = renderer.channel;
if (!channel) return;
if (renderer.state.type !== "RENDER") return;
const messages = [...renderer.state.messages];
const index = messages.findIndex((x) => x._id === id);
if (index > -1) {
const message = { ...messages[index], ...mapMessage(patch) };
messages.splice(index, 1, message);
renderer.setState(
channel,
{
...renderer.state,
messages,
},
{ type: "StayAtBottom" },
);
}*/
},
edit: async () => {},
delete: async (renderer, id) => {
const channel = renderer.channel;
if (!channel) return;