Skip to content

Commit f8a8525

Browse files
authored
Merge pull request #190 from GetStream/feature/update-code-samples-with-users-upsert
Update code examples to use the new UpsertUsersAsync signature
2 parents dbc54ec + f0acf7d commit f8a8525

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Assets/Plugins/StreamChat/Samples/ClientAndUsersCodeSamples.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public async Task UserUpdates()
120120
};
121121

122122
// Upsert means: update user with a given ID or create a new one if it doesn't exist
123-
var users = await Client.UpsertUsers(new[] { createOrUpdateUser });
123+
var users = await Client.UpsertUsersAsync(new[] { createOrUpdateUser });
124124
}
125125

126126
public async Task UserUpdatesMultiple()
@@ -150,7 +150,7 @@ public async Task UserUpdatesMultiple()
150150
};
151151

152152
// Upsert means: update user with a given ID or create a new one if it doesn't exist
153-
var users = await Client.UpsertUsers(usersToCreateOrUpdate);
153+
var users = await Client.UpsertUsersAsync(usersToCreateOrUpdate);
154154
}
155155

156156
#endregion

0 commit comments

Comments
 (0)