merge develop

This commit is contained in:
Salvatore Giordano
2021-03-04 15:18:06 +01:00
parent f63a68a494
commit 11acc1ffe4
4 changed files with 17 additions and 15 deletions
+5 -3
View File
@@ -55,7 +55,7 @@ class _MyAppState extends State<MyApp> with TickerProviderStateMixin {
final client = StreamChatClient(
apiKey ?? kDefaultStreamApiKey,
logLevel: Level.SEVERE,
logLevel: Level.INFO,
)..chatPersistenceClient = chatPersistentClient;
if (userId != null) {
@@ -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,