feat: Converted to ios models part II

This commit is contained in:
Deven Joshi
2021-04-14 14:56:04 +05:30
parent 97c35371af
commit 88f9bcc80c
32 changed files with 217 additions and 253 deletions
+3 -3
View File
@@ -311,7 +311,7 @@ class StreamChatClient {
httpClient.unlock();
await connectUser(User.temp(id: userId), newToken);
await connectUser(User(id: userId), newToken);
try {
handler.resolve(
@@ -753,7 +753,7 @@ class StreamChatClient {
final users = channels
.expand((it) => it.members)
.map((it) => it!.user)
.map((it) => it.user)
.toList(growable: false);
state!._updateUsers(users);
@@ -956,7 +956,7 @@ class StreamChatClient {
_anonymous = true;
const uuid = Uuid();
state!.user = OwnUser.temp(id: uuid.v4());
state!.user = OwnUser(id: uuid.v4());
return connect().then((event) {
_connectCompleter!.complete(event);