chore: bump and migrate deps.

Signed-off-by: xsahil03x <[email protected]>
This commit is contained in:
Sahil Kumar
2023-06-20 00:35:25 +05:30
committed by xsahil03x
parent 3d068f088a
commit a872ae34bb
14 changed files with 62 additions and 49 deletions
+3 -3
View File
@@ -133,8 +133,8 @@ class _StreamChatSampleAppState extends State<StreamChatSampleApp>
redirect: (context, state) {
final loggedIn =
_initNotifier.initData?.client.state.currentUser != null;
final loggingIn = state.subloc == Routes.CHOOSE_USER.path ||
state.subloc == Routes.ADVANCED_OPTIONS.path;
final loggingIn = state.matchedLocation == Routes.CHOOSE_USER.path ||
state.matchedLocation == Routes.ADVANCED_OPTIONS.path;
if (!loggedIn) {
return loggingIn ? null : Routes.CHOOSE_USER.path;
@@ -142,7 +142,7 @@ class _StreamChatSampleAppState extends State<StreamChatSampleApp>
// if the user is logged in but still on the login page, send them to
// the home page
if (loggedIn && state.subloc == Routes.CHOOSE_USER.path) {
if (loggedIn && state.matchedLocation == Routes.CHOOSE_USER.path) {
return Routes.CHANNEL_LIST_PAGE.path;
}