fix(llc): fix llc

This commit is contained in:
Salvatore Giordano
2022-04-11 17:30:42 +02:00
parent 6f50ea514e
commit 136d5be43a
@@ -328,7 +328,9 @@ class StreamChatClient {
_chatPersistenceClient = _originalChatPersistenceClient; _chatPersistenceClient = _originalChatPersistenceClient;
await _chatPersistenceClient!.connect(ownUser.id); await _chatPersistenceClient!.connect(ownUser.id);
} }
final connectedUser = await openConnection(); final connectedUser = await openConnection(
includeUserDetailsInConnectCall: true,
);
return state.currentUser = connectedUser; return state.currentUser = connectedUser;
} catch (e, stk) { } catch (e, stk) {
if (e is StreamWebSocketError && e.isRetriable) { if (e is StreamWebSocketError && e.isRetriable) {
@@ -342,7 +344,7 @@ class StreamChatClient {
/// Creates a new WebSocket connection with the current user. /// Creates a new WebSocket connection with the current user.
Future<OwnUser> openConnection({ Future<OwnUser> openConnection({
bool includeUserDetailsInConnectCall = true, bool includeUserDetailsInConnectCall = false,
}) async { }) async {
assert( assert(
state.currentUser != null, state.currentUser != null,