mirror of
				https://gitlab.com/famedly/fluffychat.git
				synced 2025-11-03 22:07:23 +01:00 
			
		
		
		
	fix: Room upgrade again
This commit is contained in:
		
							parent
							
								
									c79562f5da
								
							
						
					
					
						commit
						1d4070580a
					
				@ -70,7 +70,7 @@ class ChatPermissionsSettings extends StatelessWidget {
 | 
			
		||||
            final powerLevels = Map<String, dynamic>.from(powerLevelsContent)
 | 
			
		||||
              ..removeWhere((k, v) => !(v is int));
 | 
			
		||||
            final eventsPowerLevels =
 | 
			
		||||
                Map<String, dynamic>.from(powerLevelsContent['events'])
 | 
			
		||||
                Map<String, dynamic>.from(powerLevelsContent['events'] ?? {})
 | 
			
		||||
                  ..removeWhere((k, v) => !(v is int));
 | 
			
		||||
 | 
			
		||||
            return Column(
 | 
			
		||||
@ -129,7 +129,7 @@ class ChatPermissionsSettings extends StatelessWidget {
 | 
			
		||||
                              context, entry.key, entry.value,
 | 
			
		||||
                              category: 'events'),
 | 
			
		||||
                        ),
 | 
			
		||||
                    if (room.ownPowerLevel >= 100) ...{
 | 
			
		||||
                    if (room.canSendEvent(EventTypes.RoomTombstone)) ...{
 | 
			
		||||
                      Divider(thickness: 1),
 | 
			
		||||
                      FutureBuilder<ServerCapabilities>(
 | 
			
		||||
                        future: room.client.requestServerCapabilities(),
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user