refactor: Update dependencies
This commit is contained in:
parent
66ac948d7a
commit
91fc889bce
20 changed files with 422 additions and 293 deletions
|
|
@ -73,8 +73,10 @@ class ChatPermissionsSettingsController extends State<ChatPermissionsSettings> {
|
|||
|
||||
void updateRoomAction(Capabilities capabilities) async {
|
||||
final room = Matrix.of(context).client.getRoomById(roomId!)!;
|
||||
final String roomVersion =
|
||||
room.getState(EventTypes.RoomCreate)!.content['room_version'] ?? '1';
|
||||
final roomVersion = room
|
||||
.getState(EventTypes.RoomCreate)!
|
||||
.content['room_version'] as String? ??
|
||||
'1';
|
||||
final newVersion = await showConfirmationDialog<String>(
|
||||
context: context,
|
||||
title: L10n.of(context)!.replaceRoomWithNewerVersion,
|
||||
|
|
|
|||
|
|
@ -127,9 +127,9 @@ class ChatPermissionsSettingsView extends StatelessWidget {
|
|||
),
|
||||
);
|
||||
}
|
||||
final String roomVersion = room
|
||||
final roomVersion = room
|
||||
.getState(EventTypes.RoomCreate)!
|
||||
.content['room_version'] ??
|
||||
.content['room_version'] as String? ??
|
||||
'1';
|
||||
|
||||
return ListTile(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue