hide server ACL events from timeline by default, introduce setting to show them
This commit is contained in:
parent
0743c4cfc6
commit
9e6951818a
1 changed files with 25 additions and 4 deletions
|
|
@ -230,6 +230,21 @@ class SettingsSectionsController
|
|||
.onError(showError),
|
||||
),
|
||||
),
|
||||
.new(
|
||||
title: "Hide Server ACL Events",
|
||||
description: "Hides server ACL (server ban list) changes from appearing in conversations.",
|
||||
icon: Icons.dns,
|
||||
builder: (title, description, icon) => SwitchListTile(
|
||||
title: Text(title),
|
||||
subtitle: Text(description),
|
||||
secondary: Icon(icon),
|
||||
value: settings.hideServerAclEvents,
|
||||
onChanged: (value) => ref
|
||||
.read(SettingsController.provider.notifier)
|
||||
.set(settings.copyWith(hideServerAclEvents: value))
|
||||
.onError(showError),
|
||||
),
|
||||
),
|
||||
]),
|
||||
),
|
||||
.new(
|
||||
|
|
|
|||
Loading…
Reference in a new issue