forked from Nexus/nexus
support a lot more events to be rendered
Also adds show hidden events setting. Fixes #178
This commit is contained in:
parent
3cf0b811bb
commit
6e6bcaaad1
1 changed files with 233 additions and 87 deletions
|
|
@ -378,17 +378,17 @@ class SettingsSectionsController
|
|||
),
|
||||
),
|
||||
.new(
|
||||
title: "Hide Server ACL Events",
|
||||
description: "Hides server ACL (server ban list) changes from appearing in conversations.",
|
||||
icon: Icons.dns,
|
||||
title: "Show Hidden Events",
|
||||
description: "Shows events that are usually hidden, like reactions, edits, deletions and server ACL changes, in conversations.",
|
||||
icon: Icons.visibility,
|
||||
builder: (title, description, icon) => SwitchListTile(
|
||||
title: Text(title),
|
||||
subtitle: Text(description),
|
||||
secondary: Icon(icon),
|
||||
value: settings.hideServerAclEvents,
|
||||
value: settings.showHiddenEvents,
|
||||
onChanged: (value) => ref
|
||||
.read(SettingsController.provider.notifier)
|
||||
.set(settings.copyWith(hideServerAclEvents: value))
|
||||
.set(settings.copyWith(showHiddenEvents: value))
|
||||
.onError(showError),
|
||||
),
|
||||
),
|
||||
|
|
|
|||
Loading…
Reference in a new issue