mirror of
				https://gitlab.com/famedly/fluffychat.git
				synced 2025-11-04 06:17:26 +01:00 
			
		
		
		
	fix: Hide stickers button when there is not sticker pack
This commit is contained in:
		
							parent
							
								
									a8201c4358
								
							
						
					
					
						commit
						b71dd4bc08
					
				@ -626,20 +626,24 @@ class ChatView extends StatelessWidget {
 | 
			
		||||
                                              contentPadding: EdgeInsets.all(0),
 | 
			
		||||
                                            ),
 | 
			
		||||
                                          ),
 | 
			
		||||
                                        PopupMenuItem<String>(
 | 
			
		||||
                                          value: 'sticker',
 | 
			
		||||
                                          child: ListTile(
 | 
			
		||||
                                            leading: CircleAvatar(
 | 
			
		||||
                                              backgroundColor: Colors.orange,
 | 
			
		||||
                                              foregroundColor: Colors.white,
 | 
			
		||||
                                              child: Icon(Icons
 | 
			
		||||
                                                  .emoji_emotions_outlined),
 | 
			
		||||
                                        if (controller.room
 | 
			
		||||
                                            .getImagePacks(
 | 
			
		||||
                                                ImagePackUsage.sticker)
 | 
			
		||||
                                            .isNotEmpty)
 | 
			
		||||
                                          PopupMenuItem<String>(
 | 
			
		||||
                                            value: 'sticker',
 | 
			
		||||
                                            child: ListTile(
 | 
			
		||||
                                              leading: CircleAvatar(
 | 
			
		||||
                                                backgroundColor: Colors.orange,
 | 
			
		||||
                                                foregroundColor: Colors.white,
 | 
			
		||||
                                                child: Icon(Icons
 | 
			
		||||
                                                    .emoji_emotions_outlined),
 | 
			
		||||
                                              ),
 | 
			
		||||
                                              title: Text(
 | 
			
		||||
                                                  L10n.of(context).sendSticker),
 | 
			
		||||
                                              contentPadding: EdgeInsets.all(0),
 | 
			
		||||
                                            ),
 | 
			
		||||
                                            title: Text(
 | 
			
		||||
                                                L10n.of(context).sendSticker),
 | 
			
		||||
                                            contentPadding: EdgeInsets.all(0),
 | 
			
		||||
                                          ),
 | 
			
		||||
                                        ),
 | 
			
		||||
                                        if (PlatformInfos.isMobile)
 | 
			
		||||
                                          PopupMenuItem<String>(
 | 
			
		||||
                                            value: 'voice',
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user