mirror of
				https://gitlab.com/comunic/comunicmobile
				synced 2025-11-03 19:54:12 +00:00 
			
		
		
		
	Add call button
This commit is contained in:
		@@ -25,10 +25,21 @@ class GroupConversationSection extends StatelessWidget {
 | 
			
		||||
          ),
 | 
			
		||||
          Positioned(
 | 
			
		||||
            right: 1.0,
 | 
			
		||||
            child: IconButton(
 | 
			
		||||
              icon: Icon(Icons.settings),
 | 
			
		||||
              onPressed: () => MainController.of(context)
 | 
			
		||||
                  .openConversationSettingsRoute(conv),
 | 
			
		||||
            child: Row(
 | 
			
		||||
              children: [
 | 
			
		||||
                conv.callCapabilities != CallCapabilities.NONE
 | 
			
		||||
                    ? IconButton(
 | 
			
		||||
                        icon: Icon(Icons.phone),
 | 
			
		||||
                        onPressed: () =>
 | 
			
		||||
                            MainController.of(context).startCall(conv.id),
 | 
			
		||||
                      )
 | 
			
		||||
                    : Container(),
 | 
			
		||||
                IconButton(
 | 
			
		||||
                  icon: Icon(Icons.settings),
 | 
			
		||||
                  onPressed: () => MainController.of(context)
 | 
			
		||||
                      .openConversationSettingsRoute(conv),
 | 
			
		||||
                ),
 | 
			
		||||
              ],
 | 
			
		||||
            ),
 | 
			
		||||
          )
 | 
			
		||||
        ],
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user