Skip to content

Commit

Permalink
Only save remote SDP if available
Browse files Browse the repository at this point in the history
  • Loading branch information
Gregor Herdmann committed May 9, 2017
1 parent 47c8865 commit 6eaaa9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/script/calling/entities/EParticipant.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,14 @@ z.calling.entities.EParticipant = class EParticipant {
return Promise.resolve(this);
}

const {client_id, props, session_id, type} = e_call_message_et;
const {client_id, props, sdp: rtc_sdp, session_id} = e_call_message_et;

return this.update_properties(props)
.then(() => {
this.session_id = session_id;
this.e_flow_et.set_remote_client_id(client_id);

if (type !== z.calling.enum.E_CALL_MESSAGE_TYPE.PROP_SYNC) {
if (rtc_sdp) {
return this.e_flow_et.save_remote_sdp(e_call_message_et);
}
})
Expand Down

0 comments on commit 6eaaa9b

Please sign in to comment.