[StreamChatPersistence] Fix ownReactions userId bug
Signed-off-by: Sahil Kumar <[email protected]>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user