refactor: remove unused scroll handling function from MessageList component to improve code clarity and maintainability
This commit is contained in:
@@ -425,14 +425,6 @@
|
||||
return grupos;
|
||||
}
|
||||
|
||||
function handleScroll(e: Event) {
|
||||
const target = e.target as HTMLDivElement;
|
||||
// Considerar "no final" se estiver a menos de 150px do final
|
||||
const distanciaDoFinal = target.scrollHeight - target.scrollTop - target.clientHeight;
|
||||
const isAtBottom = distanciaDoFinal < 150;
|
||||
shouldScrollToBottom = isAtBottom;
|
||||
}
|
||||
|
||||
async function handleReagir(mensagemId: Id<'mensagens'>, emoji: string) {
|
||||
await client.mutation(api.chat.reagirMensagem, {
|
||||
mensagemId,
|
||||
|
||||
Reference in New Issue
Block a user