forked from abner/for-legacy-web
Fix chat not scrolling to bottom when messages update.
This commit is contained in:
1 parent
d13b5e812d
commit
745b03452b
4 files changed
+13
-7
No files matched your search
@@ -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