fixed notifications for reactions

This commit is contained in:
2024-09-27 15:38:01 +03:00
parent c577b91dfe
commit 53c23bf5ea
9 changed files with 134 additions and 45 deletions

View File

@@ -155,6 +155,10 @@ export const ChatList = ({ initialMessages, myAddress, tempMessages, chatId, onR
const handleAtBottomStateChange = (atBottom) => {
isAtBottomRef.current = atBottom;
if(atBottom){
handleMessageSeen();
setShowScrollButton(false)
}
};
return (
@@ -165,7 +169,6 @@ export const ChatList = ({ initialMessages, myAddress, tempMessages, chatId, onR
itemContent={rowRenderer}
atBottomThreshold={50}
followOutput="smooth"
onScroll={handleScroll}
atBottomStateChange={handleAtBottomStateChange} // Detect bottom status
increaseViewportBy={3000}