mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-19 04:55:09 +00:00
chore: Follow up navigatorcontext fix
This commit is contained in:
parent
1d934c5353
commit
9238dbcd8d
3 changed files with 3 additions and 15 deletions
|
@ -680,10 +680,7 @@ class ChatListController extends State<ChatList>
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) => ChatListView(this);
|
||||||
Matrix.of(context).navigatorContext = context;
|
|
||||||
return ChatListView(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
void _hackyWebRTCFixForWeb() {
|
void _hackyWebRTCFixForWeb() {
|
||||||
ChatList.contextForVoip = context;
|
ChatList.contextForVoip = context;
|
||||||
|
|
|
@ -165,10 +165,7 @@ class HomeserverPickerController extends State<HomeserverPicker> {
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) => HomeserverPickerView(this);
|
||||||
Matrix.of(context).navigatorContext = context;
|
|
||||||
return HomeserverPickerView(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
Future<void> restoreBackup() async {
|
Future<void> restoreBackup() async {
|
||||||
final picked = await FilePicker.platform.pickFiles(withData: true);
|
final picked = await FilePicker.platform.pickFiles(withData: true);
|
||||||
|
|
|
@ -339,13 +339,7 @@ class MatrixState extends State<Matrix> with WidgetsBindingObserver {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
navigatorContext.go(
|
navigatorContext.go(state == LoginState.loggedIn ? '/rooms' : '/home');
|
||||||
Uri(
|
|
||||||
path: state == LoginState.loggedIn ? '/rooms' : '/home',
|
|
||||||
queryParameters:
|
|
||||||
GoRouterState.of(navigatorContext).uri.queryParameters,
|
|
||||||
).toString(),
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
onUiaRequest[name] ??= c.onUiaRequest.stream.listen(uiaRequestHandler);
|
onUiaRequest[name] ??= c.onUiaRequest.stream.listen(uiaRequestHandler);
|
||||||
|
|
Loading…
Reference in a new issue