()
| 63 | }); |
| 64 | |
| 65 | const handleConversationViewScroll = () => { |
| 66 | if (!conversationViewRef.current) { |
| 67 | return; |
| 68 | } |
| 69 | setShowHeaderShadow((conversationViewRef.current?.scrollTop || 0) > 0); |
| 70 | setIsStickyAtBottom( |
| 71 | conversationViewRef.current.scrollTop + conversationViewRef.current.clientHeight >= conversationViewRef.current.scrollHeight |
| 72 | ); |
| 73 | }; |
| 74 | conversationViewRef.current?.addEventListener("scroll", handleConversationViewScroll); |
| 75 | |
| 76 | return () => { |
nothing calls this directly
no outgoing calls
no test coverage detected