forked from abner/for-legacy-web
Fix chat not scrolling to bottom when messages update.
This commit is contained in:
@@ -72,7 +72,13 @@ export const SimpleRenderer: RendererRoutines = {
|
||||
});
|
||||
});
|
||||
},
|
||||
edit: noopAsync,
|
||||
edit: async (renderer) => {
|
||||
console.log("EDIT!!");
|
||||
renderer.emitScroll({
|
||||
type: "StayAtBottom",
|
||||
smooth: false,
|
||||
});
|
||||
},
|
||||
delete: async (renderer, id) => {
|
||||
const channel = renderer.channel;
|
||||
if (!channel) return;
|
||||
|
||||
Reference in New Issue
Block a user