refactor: Added and applied require_trailing_commas linter rule
This commit is contained in:
parent
adb3f766e5
commit
ec7acc5385
112 changed files with 3466 additions and 2855 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue