fix feed not loading after login

This commit is contained in:
Lea 2023-01-01 02:24:20 +01:00
parent e3f762d6bb
commit ced500ec7b
Signed by: Lea
GPG key ID: 1BAFFE8347019C42

View file

@ -138,7 +138,10 @@ class _MyHomePageState extends State<MyHomePage> {
loggedIn = widget.api.loggedIn();
});
if (loggedIn) timer.cancel();
if (loggedIn) {
timer.cancel();
refresh().then((_) => setState(() => _fetched = true));
}
});
}