fix: client state migrated to null

This commit is contained in:
Deven Joshi
2021-04-16 17:52:08 +05:30
parent 1aea44e568
commit e1ab168d33
3 changed files with 47 additions and 47 deletions
@@ -566,7 +566,7 @@ void main() {
tokenProvider: (_) async => '',
);
client.state?.user = OwnUser(id: 'test-id');
client.state.user = OwnUser(id: 'test-id');
final channelClient = client.channel('messaging', id: 'testid');
const reactionType = 'test';
@@ -617,7 +617,7 @@ void main() {
tokenProvider: (_) async => '',
);
client.state?.user = OwnUser(id: 'test-id');
client.state.user = OwnUser(id: 'test-id');
final channelClient = client.channel('messaging', id: 'testid');
@@ -639,7 +639,7 @@ void main() {
type: 'test',
createdAt: DateTime.now(),
user: User(
id: client.state?.user?.id ?? '',
id: client.state.user?.id ?? '',
),
),
);