File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ patch type="fixed" "Include last server offer in SyncState during reconnection"
Original file line number Diff line number Diff line change @@ -1231,6 +1231,7 @@ class Engine extends Disposable with EventsEmittable<EngineEvent> {
12311231 required List <String > trackSidsDisabled,
12321232 }) async {
12331233 final previousAnswer = (await subscriber? .pc.getLocalDescription ())? .toPBType ();
1234+ final previousOffer = (await subscriber? .pc.getRemoteDescription ())? .toPBType ();
12341235
12351236 // Build data channel receive states for reliability
12361237 final dataChannelReceiveStates = < lk_rtc.DataChannelReceiveState > [];
@@ -1245,6 +1246,7 @@ class Engine extends Disposable with EventsEmittable<EngineEvent> {
12451246 }
12461247 signalClient.sendSyncState (
12471248 answer: previousAnswer,
1249+ offer: previousOffer,
12481250 subscription: subscription,
12491251 publishTracks: publishTracks,
12501252 dataChannelInfo: dataChannelInfo (),
Original file line number Diff line number Diff line change @@ -485,6 +485,7 @@ extension SignalClientRequests on SignalClient {
485485 @internal
486486 void sendSyncState ({
487487 required lk_rtc.SessionDescription ? answer,
488+ required lk_rtc.SessionDescription ? offer,
488489 required lk_rtc.UpdateSubscription subscription,
489490 required Iterable <lk_rtc.TrackPublishedResponse >? publishTracks,
490491 required Iterable <lk_rtc.DataChannelInfo >? dataChannelInfo,
@@ -494,6 +495,7 @@ extension SignalClientRequests on SignalClient {
494495 _sendRequest (lk_rtc.SignalRequest (
495496 syncState: lk_rtc.SyncState (
496497 answer: answer,
498+ offer: offer,
497499 subscription: subscription,
498500 publishTracks: publishTracks,
499501 dataChannels: dataChannelInfo,
You can’t perform that action at this time.
0 commit comments