add persistence
This commit is contained in:
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user