File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed 
Explorer/Assets/DCL/Chat/_Refactor Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ public ChatPanelPresenter(ChatPanelView view,
7171
7272            uiScope  =  new  EventSubscriptionScope ( ) ; 
7373            DCLInput . Instance . Shortcuts . OpenChatCommandLine . performed  +=  OnOpenChatCommandLineShortcutPerformed ; 
74+             DCLInput . Instance . UI . Close . performed  +=  OnUIClose ; 
7475            uiScope . Add ( eventBus . Subscribe < ChatEvents . ChatStateChangedEvent > ( OnChatStateChanged ) ) ; 
7576
7677            communityVoiceChatSubTitleButtonPresenter  =  new  CommunityVoiceChatSubTitleButtonPresenter ( 
@@ -186,15 +187,17 @@ private void OnOpenChatCommandLineShortcutPerformed(InputAction.CallbackContext
186187            } 
187188        } 
188189
189-         public  void  OnUIClose ( ) 
190+         private  void  OnUIClose ( InputAction . CallbackContext   obj ) 
190191        { 
191192            if  ( chatStateMachine . IsMinimized )  return ; 
193+ 
192194            chatStateMachine . SetVisibility ( true ) ; 
193195        } 
194196
195197        public  void  Dispose ( ) 
196198        { 
197199            DCLInput . Instance . Shortcuts . OpenChatCommandLine . performed  -=  OnOpenChatCommandLineShortcutPerformed ; 
200+             DCLInput . Instance . UI . Close . performed  -=  OnUIClose ; 
198201
199202            initCts . SafeCancelAndDispose ( ) ; 
200203
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments