From d7be9096c652a223d879d4a15b3be515539e93dc Mon Sep 17 00:00:00 2001 From: David Colburn Date: Tue, 20 Jul 2021 17:23:06 -0700 Subject: [PATCH] persist hidden field to startSession --- go.mod | 2 +- go.sum | 4 ++-- pkg/routing/redisrouter.go | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index fe27936d1..c04a56136 100644 --- a/go.mod +++ b/go.mod @@ -11,7 +11,7 @@ require ( github.com/google/wire v0.5.0 github.com/gorilla/websocket v1.4.2 github.com/jxskiss/base62 v0.0.0-20191017122030-4f11678b909b - github.com/livekit/protocol v0.5.8 + github.com/livekit/protocol v0.5.9 github.com/magefile/mage v1.11.0 github.com/maxbrunsfeld/counterfeiter/v6 v6.3.0 github.com/mitchellh/go-homedir v1.1.0 diff --git a/go.sum b/go.sum index ff0775104..e1c95bc93 100644 --- a/go.sum +++ b/go.sum @@ -237,8 +237,8 @@ github.com/lithammer/shortuuid/v3 v3.0.6 h1:pr15YQyvhiSX/qPxncFtqk+v4xLEpOZObbsY github.com/lithammer/shortuuid/v3 v3.0.6/go.mod h1:vMk8ke37EmiewwolSO1NLW8vP4ZaKlRuDIi8tWWmAts= github.com/livekit/ion-sfu v1.20.3 h1:1xfWnbg3tgXHLQWDaRQvuD/DtIOp72hAHDaDutP/i6M= github.com/livekit/ion-sfu v1.20.3/go.mod h1:dEdOG4KSqIftr5HxxqciNKBIdu0v3OD0ZYL7A3J09KA= -github.com/livekit/protocol v0.5.8 h1:gcHZ1afxtmYrs8TvL1HqlRDFrF7SjnTbxCNWZGM5kik= -github.com/livekit/protocol v0.5.8/go.mod h1:wo3CGfYB7XMF8GoVJAfTARrYSP/ombi+sbLl6AYdKP0= +github.com/livekit/protocol v0.5.9 h1:NIA/nX74dv199oVmfGCbBK5qpuHTDu6h0K7DAPiM++w= +github.com/livekit/protocol v0.5.9/go.mod h1:wo3CGfYB7XMF8GoVJAfTARrYSP/ombi+sbLl6AYdKP0= github.com/lucsky/cuid v1.0.2 h1:z4XlExeoderxoPj2/dxKOyPxe9RCOu7yNq9/XWxIUMQ= github.com/lucsky/cuid v1.0.2/go.mod h1:QaaJqckboimOmhRSJXSx/+IT+VTfxfPGSo/6mfgUfmE= github.com/lyft/protoc-gen-validate v0.0.13/go.mod h1:XbGvPuh87YZc5TdIa2/I4pLk0QoUACkjt2znoq26NVQ= diff --git a/pkg/routing/redisrouter.go b/pkg/routing/redisrouter.go index 0ebac855e..246dc19fd 100644 --- a/pkg/routing/redisrouter.go +++ b/pkg/routing/redisrouter.go @@ -160,6 +160,7 @@ func (r *RedisRouter) StartParticipantSignal(roomName string, pi ParticipantInit ProtocolVersion: pi.ProtocolVersion, UsePlanB: pi.UsePlanB, AutoSubscribe: pi.AutoSubscribe, + Hidden: pi.Hidden, }) if err != nil { return @@ -229,6 +230,7 @@ func (r *RedisRouter) startParticipantRTC(ss *livekit.StartSession, participantK ProtocolVersion: ss.ProtocolVersion, UsePlanB: ss.UsePlanB, AutoSubscribe: ss.AutoSubscribe, + Hidden: ss.Hidden, } reqChan := r.getOrCreateMessageChannel(r.requestChannels, participantKey)