@@ -849,7 +849,7 @@ export default function Page() {
849849 }
850850
851851 function navigateMessageByOffset ( offset : number ) {
852- const msgs = visibleUserMessages ( )
852+ const msgs = timelineVisibleUserMessages ( )
853853 if ( msgs . length === 0 ) return
854854
855855 const current = store . messageId && messageMark === scrollMark ? store . messageId : cursor ( )
@@ -999,7 +999,7 @@ export default function Page() {
999999
10001000 createEffect (
10011001 on (
1002- ( ) => visibleUserMessages ( ) . at ( - 1 ) ?. id ,
1002+ ( ) => timelineVisibleUserMessages ( ) . at ( - 1 ) ?. id ,
10031003 ( lastId , prevLastId ) => {
10041004 if ( lastId && prevLastId && lastId > prevLastId ) {
10051005 setStore ( "messageId" , undefined )
@@ -1982,12 +1982,12 @@ export default function Page() {
19821982 )
19831983
19841984 const { clearMessageHash, scrollToMessage } = useSessionHashScroll ( {
1985- sessionKey,
1986- sessionID : ( ) => params . id ,
1987- messagesReady,
1988- visibleUserMessages,
1989- historyMore,
1990- historyLoading,
1985+ sessionKey : timelineSessionKey ,
1986+ sessionID : timelineSessionID ,
1987+ messagesReady : timelineMessagesReady ,
1988+ visibleUserMessages : timelineVisibleUserMessages ,
1989+ historyMore : timelineHistoryMore ,
1990+ historyLoading : timelineHistoryLoading ,
19911991 loadMore : ( sessionID ) => sync . session . history . loadMore ( sessionID ) ,
19921992 turnStart : historyWindow . turnStart ,
19931993 currentMessageId : ( ) => store . messageId ,
0 commit comments