diff --git a/example/ios/Flutter/.last_build_id b/example/ios/Flutter/.last_build_id index 20c7c514..e72273c3 100644 --- a/example/ios/Flutter/.last_build_id +++ b/example/ios/Flutter/.last_build_id @@ -1 +1 @@ -c3e639ccf9b069e37a7d1345194e6b99 \ No newline at end of file +13a41b8138c4868054e44b5158f3bdd6 \ No newline at end of file diff --git a/example/lib/main.dart b/example/lib/main.dart index 9f41efd5..c8bb34f5 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -24,7 +24,7 @@ void main() async { final client = Client( apiKey ?? kDefaultStreamApiKey, - logLevel: Level.INFO, + logLevel: Level.SEVERE, showLocalNotification: (!kIsWeb && Platform.isAndroid) ? showLocalNotification : null, persistenceEnabled: true, @@ -213,12 +213,16 @@ class _HomePageState extends State { alignment: Alignment.bottomCenter, child: ListTile( onTap: () async { - await StreamChat.of(context).client.disconnect(); + Navigator.pop(context); final secureStorage = FlutterSecureStorage(); await secureStorage.deleteAll(); - Navigator.pop(context); - Navigator.pushReplacementNamed( + + StreamChat.of(context).client.disconnect( + clearUser: true, + ); + + await Navigator.pushReplacementNamed( context, Routes.CHOOSE_USER, ); diff --git a/example/pubspec.yaml b/example/pubspec.yaml index cec1b886..ef06f719 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -1,6 +1,6 @@ name: example description: A new Flutter project. -version: 1.0.93+96 +version: 1.0.92+95 environment: sdk: ">=2.2.2 <3.0.0"