Skip to content

Commit d971181

Browse files
authored
added missing params to getOrCreate() in Call and CoordinatorClient (#541)
1 parent 5f39e92 commit d971181

File tree

4 files changed

+21
-0
lines changed

4 files changed

+21
-0
lines changed

packages/stream_video/lib/src/call/call.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -902,6 +902,9 @@ class Call {
902902
Future<Result<CallReceivedOrCreatedData>> getOrCreate({
903903
List<String> memberIds = const [],
904904
bool ringing = false,
905+
String? team,
906+
bool? notify,
907+
Map<String, Object> custom = const {},
905908
}) async {
906909
_logger.d(
907910
() => '[getOrCreate] cid: $callCid, ringing: $ringing, '
@@ -923,6 +926,9 @@ class Call {
923926
role: 'admin',
924927
);
925928
}).toList(),
929+
team: team,
930+
notify: notify,
931+
custom: custom,
926932
);
927933

928934
return response.fold(

packages/stream_video/lib/src/coordinator/coordinator_client.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ abstract class CoordinatorClient {
6060
required StreamCallCid callCid,
6161
bool? ringing,
6262
List<open.MemberRequest>? members,
63+
String? team,
64+
bool? notify,
65+
Map<String, Object> custom = const {},
6366
});
6467

6568
Future<Result<models.CoordinatorJoined>> joinCall({

packages/stream_video/lib/src/coordinator/open_api/coordinator_client_open_api.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,9 @@ class CoordinatorClientOpenApi extends CoordinatorClient {
387387
required StreamCallCid callCid,
388388
bool? ringing,
389389
List<open.MemberRequest>? members,
390+
String? team,
391+
bool? notify,
392+
Map<String, Object> custom = const {},
390393
}) async {
391394
try {
392395
_logger.d(
@@ -404,8 +407,11 @@ class CoordinatorClientOpenApi extends CoordinatorClient {
404407
open.GetOrCreateCallRequest(
405408
data: open.CallRequest(
406409
members: members ?? [],
410+
team: team,
411+
custom: custom,
407412
),
408413
ring: ringing,
414+
notify: notify,
409415
),
410416
);
411417
_logger.v(() => '[getOrCreateCall] completed: $result');

packages/stream_video/lib/src/coordinator/retry/coordinator_client_retry.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,12 +141,18 @@ class CoordinatorClientRetry extends CoordinatorClient {
141141
required StreamCallCid callCid,
142142
bool? ringing,
143143
List<open.MemberRequest>? members,
144+
String? team,
145+
bool? notify,
146+
Map<String, Object> custom = const {},
144147
}) {
145148
return _retryManager.execute(
146149
() => _delegate.getOrCreateCall(
147150
callCid: callCid,
148151
ringing: ringing,
149152
members: members,
153+
team: team,
154+
notify: notify,
155+
custom: custom,
150156
),
151157
(error, nextAttemptDelay) async {
152158
_logRetry('getOrCreateCall', error, nextAttemptDelay);

0 commit comments

Comments
 (0)