Merge branch 'improvements' of https://github.com/777genius/claude_agent_teams_ui into improvements
This commit is contained in:
commit
c63a310f93
2 changed files with 3 additions and 5 deletions
|
|
@ -44,11 +44,8 @@ const MessageRowWithObserver = ({
|
|||
|
||||
useEffect(() => {
|
||||
messageRef.current = message;
|
||||
}, [message]);
|
||||
|
||||
useEffect(() => {
|
||||
onVisibleRef.current = onVisible;
|
||||
}, [onVisible]);
|
||||
}, [message, onVisible]);
|
||||
|
||||
useEffect(() => {
|
||||
if (!onVisible) return;
|
||||
|
|
|
|||
|
|
@ -27,5 +27,6 @@ export function useTeamMessagesRead(teamName: string): {
|
|||
[teamName]
|
||||
);
|
||||
|
||||
return { readSet, markRead };
|
||||
const effectiveReadSet = !teamName ? new Set<string>() : readSet;
|
||||
return { readSet: effectiveReadSet, markRead };
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue