mirror of
				https://gitlab.com/famedly/fluffychat.git
				synced 2025-11-04 06:17:26 +01:00 
			
		
		
		
	Merge branch 'soru/navigate-to-room' into 'main'
fix: navigate to /rooms when switching bundle Closes #566 See merge request famedly/fluffychat!527
This commit is contained in:
		
						commit
						c36b48302c
					
				@ -419,17 +419,20 @@ class ChatListController extends State<ChatList> {
 | 
			
		||||
    });
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  void setActiveBundle(String bundle) => setState(() {
 | 
			
		||||
        _activeSpaceId = null;
 | 
			
		||||
        selectedRoomIds.clear();
 | 
			
		||||
        Matrix.of(context).activeBundle = bundle;
 | 
			
		||||
        if (!Matrix.of(context)
 | 
			
		||||
            .currentBundle
 | 
			
		||||
            .any((client) => client == Matrix.of(context).client)) {
 | 
			
		||||
          Matrix.of(context)
 | 
			
		||||
              .setActiveClient(Matrix.of(context).currentBundle.first);
 | 
			
		||||
        }
 | 
			
		||||
      });
 | 
			
		||||
  void setActiveBundle(String bundle) {
 | 
			
		||||
    VRouter.of(context).to('/rooms');
 | 
			
		||||
    setState(() {
 | 
			
		||||
      _activeSpaceId = null;
 | 
			
		||||
      selectedRoomIds.clear();
 | 
			
		||||
      Matrix.of(context).activeBundle = bundle;
 | 
			
		||||
      if (!Matrix.of(context)
 | 
			
		||||
          .currentBundle
 | 
			
		||||
          .any((client) => client == Matrix.of(context).client)) {
 | 
			
		||||
        Matrix.of(context)
 | 
			
		||||
            .setActiveClient(Matrix.of(context).currentBundle.first);
 | 
			
		||||
      }
 | 
			
		||||
    });
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  void editBundlesForAccount(String userId) async {
 | 
			
		||||
    final client = Matrix.of(context)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user