mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-06 17:11:55 +00:00
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