fix: Make emote settings work again
This commit is contained in:
parent
2634187bff
commit
a514d9ecaa
5 changed files with 49 additions and 40 deletions
|
|
@ -28,7 +28,7 @@ class EmotesSettingsView extends StatelessWidget {
|
|||
: null,
|
||||
body: MaxWidthBody(
|
||||
child: StreamBuilder(
|
||||
stream: controller.widget.room?.onUpdate?.stream,
|
||||
stream: controller.room?.onUpdate?.stream,
|
||||
builder: (context, snapshot) {
|
||||
return Column(
|
||||
children: <Widget>[
|
||||
|
|
@ -81,7 +81,7 @@ class EmotesSettingsView extends StatelessWidget {
|
|||
),
|
||||
),
|
||||
),
|
||||
if (controller.widget.room != null)
|
||||
if (controller.room != null)
|
||||
ListTile(
|
||||
title: Text(L10n.of(context).enableEmotesGlobally),
|
||||
trailing: Switch(
|
||||
|
|
@ -89,7 +89,7 @@ class EmotesSettingsView extends StatelessWidget {
|
|||
onChanged: controller.setIsGloballyActive,
|
||||
),
|
||||
),
|
||||
if (!controller.readonly || controller.widget.room != null)
|
||||
if (!controller.readonly || controller.room != null)
|
||||
Divider(
|
||||
height: 2,
|
||||
thickness: 2,
|
||||
|
|
|
|||
|
|
@ -44,7 +44,8 @@ class MultipleEmotesSettingsView extends StatelessWidget {
|
|||
return ListTile(
|
||||
title: Text(packName),
|
||||
onTap: () async {
|
||||
VRouter.of(context).push('/settings/emotes');
|
||||
VRouter.of(context)
|
||||
.push('/rooms/${room.id}/details/emotes/${keys[i]}');
|
||||
},
|
||||
);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue