mirror of
				https://gitlab.com/famedly/fluffychat.git
				synced 2025-11-04 06:17:26 +01:00 
			
		
		
		
	fix: Routing broken in chat details
This commit is contained in:
		
							parent
							
								
									e75a5a0e3b
								
							
						
					
					
						commit
						f1166b2166
					
				@ -559,10 +559,12 @@ class _ChatState extends State<Chat> {
 | 
			
		||||
                                      '${room.directChatMatrixID} ',
 | 
			
		||||
                                ),
 | 
			
		||||
                              )
 | 
			
		||||
                          : () => AdaptivePageLayout.of(context)
 | 
			
		||||
                                      .viewDataStack
 | 
			
		||||
                                      .length <
 | 
			
		||||
                                  3
 | 
			
		||||
                          : () => (!AdaptivePageLayout.of(context)
 | 
			
		||||
                                      .columnMode(context) ||
 | 
			
		||||
                                  AdaptivePageLayout.of(context)
 | 
			
		||||
                                          .viewDataStack
 | 
			
		||||
                                          .length <
 | 
			
		||||
                                      3)
 | 
			
		||||
                              ? AdaptivePageLayout.of(context)
 | 
			
		||||
                                  .pushNamed('/rooms/${room.id}/details')
 | 
			
		||||
                              : null,
 | 
			
		||||
 | 
			
		||||
@ -95,7 +95,8 @@ class _ChatSettingsPopupMenuState extends State<ChatSettingsPopupMenu> {
 | 
			
		||||
                    widget.room.setPushRuleState(PushRuleState.notify));
 | 
			
		||||
            break;
 | 
			
		||||
          case 'details':
 | 
			
		||||
            if (AdaptivePageLayout.of(context).viewDataStack.length < 3) {
 | 
			
		||||
            if (!AdaptivePageLayout.of(context).columnMode(context) ||
 | 
			
		||||
                AdaptivePageLayout.of(context).viewDataStack.length < 3) {
 | 
			
		||||
              await AdaptivePageLayout.of(context)
 | 
			
		||||
                  .pushNamed('/rooms/${widget.room.id}/details');
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user