We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ae22a7 commit 8cd0e0aCopy full SHA for 8cd0e0a
lib/widgets/app.dart
@@ -211,14 +211,13 @@ class _ZulipAppState extends State<ZulipApp> with WidgetsBindingObserver {
211
];
212
}
213
214
- final globalStore = GlobalStoreWidget.of(context);
215
- // TODO(#524) choose initial account as last one used
216
- final initialAccountId = globalStore.accounts.firstOrNull?.id;
+ final lastAccountId = GlobalStoreWidget.settingsOf(context)
+ .getInt(IntGlobalSetting.lastVisitedAccountId);
217
return [
218
- if (initialAccountId == null)
+ if (lastAccountId == null)
219
MaterialWidgetRoute(page: const ChooseAccountPage())
220
else
221
- HomePage.buildRoute(accountId: initialAccountId),
+ HomePage.buildRoute(accountId: lastAccountId),
222
223
224
0 commit comments