mirror of
https://github.com/strukturag/nextcloud-spreed-signaling
synced 2024-05-04 06:43:11 +02:00
Remove "update" parameter in favour of "sid"
The "update" parameter was used to know if an offer should be treated by the clients as a renegotiation or a new connection. However, since the introduction of "sid" this is implicitly known (if the "sid" matches an existing connection then it is an update, otherwise it is a new connection), so that specific parameter is no longer needed. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
This commit is contained in:
parent
3636e69dba
commit
27989752bf
|
@ -655,7 +655,6 @@ type AnswerOfferMessage struct {
|
|||
RoomType string `json:"roomType"`
|
||||
Payload map[string]interface{} `json:"payload"`
|
||||
Sid string `json:"sid,omitempty"`
|
||||
Update bool `json:"update,omitempty"`
|
||||
}
|
||||
|
||||
// Type "transient"
|
||||
|
|
|
@ -572,7 +572,6 @@ func (s *ClientSession) sendOffer(client McuClient, sender string, streamType st
|
|||
RoomType: streamType,
|
||||
Payload: offer,
|
||||
Sid: client.Sid(),
|
||||
Update: true,
|
||||
}
|
||||
offer_data, err := json.Marshal(offer_message)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in a new issue