check whether persistent client is connected

This commit is contained in:
kanat
2023-05-18 10:58:18 -07:00
parent b6ee41f699
commit 4c47145ba5
2 changed files with 6 additions and 0 deletions
@@ -79,6 +79,9 @@ class StreamChatPersistenceClient extends ChatPersistenceClient {
webUseIndexedDbIfSupported: _webUseIndexedDbIfSupported,
);
@override
bool get isConnected => db != null;
@override
Future<void> connect(
String userId, {