Add a setting (off by default) for showing all rooms in home
Fixes #107 @LogN review
This commit is contained in:
parent
a86748e85f
commit
3875c3a14a
5 changed files with 52 additions and 9 deletions
|
|
@ -7,7 +7,7 @@ import "package:nexus/models/space.dart";
|
|||
|
||||
extension FocusRoom on MutationTarget {
|
||||
Future<bool> focusRoom(String roomId, [int? eventRowId]) async {
|
||||
final spaces = container.read(SpacesController.provider);
|
||||
final spaces = await container.read(SpacesController.provider.future);
|
||||
|
||||
if (spaces.firstWhereOrNull((space) => space.id == roomId) case Space _?) {
|
||||
await container
|
||||
|
|
|
|||
Loading…
Reference in a new issue