mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2025-01-23 10:34:25 +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)
|
final powerLevels = Map<String, dynamic>.from(powerLevelsContent)
|
||||||
..removeWhere((k, v) => !(v is int));
|
..removeWhere((k, v) => !(v is int));
|
||||||
final eventsPowerLevels =
|
final eventsPowerLevels =
|
||||||
Map<String, dynamic>.from(powerLevelsContent['events'])
|
Map<String, dynamic>.from(powerLevelsContent['events'] ?? {})
|
||||||
..removeWhere((k, v) => !(v is int));
|
..removeWhere((k, v) => !(v is int));
|
||||||
|
|
||||||
return Column(
|
return Column(
|
||||||
@ -129,7 +129,7 @@ class ChatPermissionsSettings extends StatelessWidget {
|
|||||||
context, entry.key, entry.value,
|
context, entry.key, entry.value,
|
||||||
category: 'events'),
|
category: 'events'),
|
||||||
),
|
),
|
||||||
if (room.ownPowerLevel >= 100) ...{
|
if (room.canSendEvent(EventTypes.RoomTombstone)) ...{
|
||||||
Divider(thickness: 1),
|
Divider(thickness: 1),
|
||||||
FutureBuilder<ServerCapabilities>(
|
FutureBuilder<ServerCapabilities>(
|
||||||
future: room.client.requestServerCapabilities(),
|
future: room.client.requestServerCapabilities(),
|
||||||
|
Loading…
Reference in New Issue
Block a user