File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
src/packages/frontend/chat Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -1190,13 +1190,15 @@ export class ChatActions extends Actions<ChatState> {
11901190 } ;
11911191
11921192 setFragment = ( date ?) => {
1193+ let fragmentId ;
11931194 if ( ! date ) {
11941195 Fragment . clear ( ) ;
1196+ fragmentId = "" ;
11951197 } else {
1196- const fragmentId = toMsString ( date ) ;
1198+ fragmentId = toMsString ( date ) ;
11971199 Fragment . set ( { chat : fragmentId } ) ;
1198- this . frameTreeActions ?. set_frame_data ( { id : this . frameId , fragmentId } ) ;
11991200 }
1201+ this . frameTreeActions ?. set_frame_data ( { id : this . frameId , fragmentId } ) ;
12001202 } ;
12011203
12021204 setShowPreview = ( showPreview ) => {
Original file line number Diff line number Diff line change @@ -146,6 +146,7 @@ export function ChatRoom({
146146 const setSelectedThreadKey = ( x ) => {
147147 if ( x != null && x != ALL_THREADS_KEY ) {
148148 actions . clearAllFilters ( ) ;
149+ actions . setFragment ( ) ;
149150 }
150151 setSelectedThreadKey0 ( x ) ;
151152 } ;
@@ -601,6 +602,7 @@ export function ChatRoom({
601602 onClick = { ( ) => {
602603 setAllowAutoSelectThread ( false ) ;
603604 setSelectedThreadKey ( null ) ;
605+ actions . setFragment ( ) ;
604606 } }
605607 >
606608 New Chat
You can’t perform that action at this time.
0 commit comments