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 35f423c commit f3798b1Copy full SHA for f3798b1
lib/widgets/app.dart
@@ -211,13 +211,12 @@ class _ZulipAppState extends State<ZulipApp> with WidgetsBindingObserver {
211
}
212
213
final globalStore = GlobalStoreWidget.of(context);
214
- // TODO(#524) choose initial account as last one used
215
- final initialAccountId = globalStore.accounts.firstOrNull?.id;
+ final lastAccountId = globalStore.lastVisitedAccountId;
216
return [
217
- if (initialAccountId == null)
+ if (lastAccountId == null)
218
MaterialWidgetRoute(page: const ChooseAccountPage())
219
else
220
- HomePage.buildRoute(accountId: initialAccountId),
+ HomePage.buildRoute(accountId: lastAccountId),
221
];
222
223
0 commit comments