type definition of room name (#311)
* WIP commit * update protocol * Fixing a test and catching one place where casting was missed * Fix one more spot which need conversion from livekit.RoomName -> string * do not covert list
This commit is contained in:
@@ -8,7 +8,7 @@ import (
|
||||
)
|
||||
|
||||
func participantKey(roomName livekit.RoomName, identity livekit.ParticipantIdentity) string {
|
||||
return roomName + "|" + identity
|
||||
return string(roomName) + "|" + identity
|
||||
}
|
||||
|
||||
func parseParticipantKey(pkey string) (roomName livekit.RoomName, identity livekit.ParticipantIdentity, err error) {
|
||||
@@ -18,5 +18,5 @@ func parseParticipantKey(pkey string) (roomName livekit.RoomName, identity livek
|
||||
return
|
||||
}
|
||||
|
||||
return parts[0], parts[1], nil
|
||||
return livekit.RoomName(parts[0]), parts[1], nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user