File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
packages/stream_video/lib/src/call Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -269,14 +269,15 @@ class Call {
269269 CallSession ? _session;
270270
271271 CallConnectOptions _connectOptions = const CallConnectOptions ();
272+ CallConnectOptions ? _connectOptionsOverride;
272273
273274 @override
274275 String toString () {
275276 return 'Call{cid: $callCid }' ;
276277 }
277278
278279 CallConnectOptions get connectOptions {
279- return _connectOptions;
280+ return _connectOptionsOverride ?? _connectOptions;
280281 }
281282
282283 set connectOptions (CallConnectOptions connectOptions) {
@@ -289,7 +290,7 @@ class Call {
289290 return ;
290291 }
291292 _logger.d (() => '[setConnectOptions] connectOptions: $connectOptions )' );
292- _connectOptions = connectOptions;
293+ _connectOptionsOverride = connectOptions;
293294 }
294295
295296 void _observeState () {
@@ -1353,6 +1354,11 @@ class Call {
13531354 _connectOptions = _connectOptions.merge (connectOptions);
13541355 }
13551356
1357+ if (_connectOptionsOverride != null ) {
1358+ _connectOptions = _connectOptions.merge (_connectOptionsOverride! );
1359+ _connectOptionsOverride = null ;
1360+ }
1361+
13561362 _stateManager.lifecycleCallCreated (
13571363 CallCreated (receivedOrCreated.data),
13581364 callConnectOptions: this .connectOptions,
You can’t perform that action at this time.
0 commit comments