add persistence

This commit is contained in:
Salvatore Giordano
2021-03-03 11:37:06 +01:00
parent b7d84a100d
commit d261e2e642
+1 -1
View File
@@ -56,7 +56,7 @@ class _MyAppState extends State<MyApp> with TickerProviderStateMixin {
final client = StreamChatClient( final client = StreamChatClient(
apiKey ?? kDefaultStreamApiKey, apiKey ?? kDefaultStreamApiKey,
logLevel: Level.INFO, logLevel: Level.INFO,
); )..chatPersistenceClient = chatPersistentClient;
if (userId != null) { if (userId != null) {
await client.connectUser( await client.connectUser(