refactor: Added and applied require_trailing_commas linter rule

This commit is contained in:
Malin Errenst 2023-03-02 10:57:52 +01:00
commit ec7acc5385
112 changed files with 3466 additions and 2855 deletions

View file

@ -150,7 +150,9 @@ class ChatSettingsPopupMenuState extends State<ChatSettingsPopupMenu> {
);
if (confirmed == OkCancelResult.ok) {
final success = await showFutureLoadingDialog(
context: context, future: () => widget.room.leave());
context: context,
future: () => widget.room.leave(),
);
if (success.error == null) {
VRouter.of(context).to('/rooms');
}
@ -158,15 +160,17 @@ class ChatSettingsPopupMenuState extends State<ChatSettingsPopupMenu> {
break;
case 'mute':
await showFutureLoadingDialog(
context: context,
future: () => widget.room
.setPushRuleState(PushRuleState.mentionsOnly));
context: context,
future: () =>
widget.room.setPushRuleState(PushRuleState.mentionsOnly),
);
break;
case 'unmute':
await showFutureLoadingDialog(
context: context,
future: () =>
widget.room.setPushRuleState(PushRuleState.notify));
context: context,
future: () =>
widget.room.setPushRuleState(PushRuleState.notify),
);
break;
case 'details':
_showChatDetails();