From 80a4dc574a0fdf84a2e72daa5f5becb3e311b7b8 Mon Sep 17 00:00:00 2001 From: Raja Subramanian Date: Tue, 13 Dec 2022 05:01:23 +0530 Subject: [PATCH] Fallback to participant key if base62 is not available (#1223) --- pkg/routing/redisrouter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/routing/redisrouter.go b/pkg/routing/redisrouter.go index e4c0e2dae..d70e3857a 100644 --- a/pkg/routing/redisrouter.go +++ b/pkg/routing/redisrouter.go @@ -544,7 +544,7 @@ func (r *RedisRouter) handleRTCMessage(rm *livekit.RTCNodeMessage) error { if pKeyB62 != "" { roomName, identity, err = parseParticipantKey(pKeyB62) } - if err != nil { + if err != nil || pKeyB62 == "" { roomName, identity, err = parseParticipantKeyLegacy(pKey) } if err != nil {