mirror of
https://github.com/strukturag/nextcloud-spreed-signaling
synced 2024-06-02 14:02:23 +02:00
No need to pass remote url when deleting (remote) subscriber.
This commit is contained in:
parent
cfcb09b382
commit
db4527544d
|
@ -228,12 +228,9 @@ func (m *CommandProxyClientMessage) CheckValid() error {
|
||||||
return fmt.Errorf("stream type missing")
|
return fmt.Errorf("stream type missing")
|
||||||
}
|
}
|
||||||
if m.RemoteUrl != "" {
|
if m.RemoteUrl != "" {
|
||||||
// TODO: Enable once subscriber deletion provides this value.
|
if m.RemoteToken == "" {
|
||||||
/*
|
return fmt.Errorf("remote token type missing")
|
||||||
if m.RemoteToken == "" {
|
}
|
||||||
return fmt.Errorf("remote token type missing")
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
remoteUrl, err := url.Parse(m.RemoteUrl)
|
remoteUrl, err := url.Parse(m.RemoteUrl)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
@ -263,10 +263,6 @@ func (s *mcuProxySubscriber) Close(ctx context.Context) {
|
||||||
ClientId: s.proxyId,
|
ClientId: s.proxyId,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
if s.publisherConn != nil {
|
|
||||||
msg.Command.RemoteUrl = s.publisherConn.rawUrl
|
|
||||||
// TODO: Add remote token for this subscriber.
|
|
||||||
}
|
|
||||||
|
|
||||||
if response, err := s.conn.performSyncRequest(ctx, msg); err != nil {
|
if response, err := s.conn.performSyncRequest(ctx, msg); err != nil {
|
||||||
if s.publisherConn != nil {
|
if s.publisherConn != nil {
|
||||||
|
|
Loading…
Reference in a new issue