[StreamChatPersistence] Fix ownReactions userId bug

Signed-off-by: Sahil Kumar <[email protected]>
This commit is contained in:
Sahil Kumar
2021-01-27 15:51:55 +05:30
parent e74a0d40ff
commit 3b9af05214
9 changed files with 29 additions and 19 deletions
+1 -1
View File
@@ -456,7 +456,7 @@ class Client {
wsConnectionStatus.value = ConnectionStatus.connecting;
if (persistenceEnabled) {
await chatPersistenceClient.connect('db_${state.user.id}');
await chatPersistenceClient.connect(state.user.id);
}
_ws = WebSocket(
@@ -11,7 +11,7 @@ import 'package:stream_chat/src/models/user.dart';
///
abstract class ChatPersistenceClient {
/// Creates a new connection to the client
Future<void> connect(String name);
Future<void> connect(String userId);
/// Closes the client connection
/// If [flush] is true, the data will also be deleted