set value of searchability toggle to room visibility (#1095)
This commit is contained in:
parent
852bdfb534
commit
e013ffb2f6
1 changed files with 1 additions and 1 deletions
|
|
@ -82,7 +82,7 @@ class VisibilityToggle extends StatelessWidget {
|
|||
child: const Icon(Icons.search_outlined),
|
||||
),
|
||||
value: room != null
|
||||
? room!.joinRules == matrix.JoinRules.public
|
||||
? snapshot.data == matrix.Visibility.public
|
||||
: visibility == matrix.Visibility.public,
|
||||
onChanged: (value) => setVisibility(
|
||||
value ? matrix.Visibility.public : matrix.Visibility.private,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue