File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ const SidebarProvider: React.FC<Props> = ({
4545 const [ upgradeNotificationCurrentState , setUpgradeNotificationCurrentState ] = useState (
4646 getLocalStorage ( `upgradeNotificationCurrentState.${ courseId } ` ) ,
4747 ) ;
48- const isDiscussionbarAvailable = ( topic ?. id && topic ?. enabledInContext ) || false ;
48+ const isDiscussionbarAvailable = true ;
4949 const isNotificationbarAvailable = ! isEmpty ( verifiedMode ) ;
5050
5151 const onNotificationSeen = useCallback ( ( ) => {
@@ -55,6 +55,7 @@ const SidebarProvider: React.FC<Props> = ({
5555
5656 useEffect ( ( ) => {
5757 window . sessionStorage . setItem ( 'hideCourseOutlineSidebar' , 'true' ) ;
58+ window . sessionStorage . setItem ( `notificationTrayStatus.${ courseId } ` , 'open' ) ;
5859 setHideDiscussionbar ( ! isDiscussionbarAvailable ) ;
5960 setHideNotificationbar ( ! isNotificationbarAvailable ) ;
6061 if ( initialSidebar && currentSidebar !== initialSidebar ) {
Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ export const useCourseOutlineSidebar = () => {
6868 } else {
6969 toggleSidebar ( ID ) ;
7070 window . sessionStorage . removeItem ( 'hideCourseOutlineSidebar' ) ;
71+ window . sessionStorage . setItem ( `notificationTrayStatus.${ courseId } ` , 'closed' ) ;
7172 }
7273 } ;
7374
You can’t perform that action at this time.
0 commit comments