update default apikey and users

This commit is contained in:
Salvatore Giordano
2021-03-03 11:36:24 +01:00
parent 1890536fb4
commit b7d84a100d
3 changed files with 15 additions and 13 deletions
+6 -4
View File
@@ -55,8 +55,8 @@ class _MyAppState extends State<MyApp> with TickerProviderStateMixin {
final client = StreamChatClient(
apiKey ?? kDefaultStreamApiKey,
logLevel: Level.SEVERE,
)..chatPersistenceClient = chatPersistentClient;
logLevel: Level.INFO,
);
if (userId != null) {
await client.connectUser(
@@ -426,8 +426,10 @@ class _HomePageState extends State<HomePage> {
onTap: () async {
Navigator.pop(context);
final secureStorage = FlutterSecureStorage();
await secureStorage.deleteAll();
if (!kIsWeb) {
final secureStorage = FlutterSecureStorage();
await secureStorage.deleteAll();
}
StreamChat.of(context).client.disconnect(
clearUser: true,