This message was deleted.
# helpdesk
s
This message was deleted.
m
There is the hidden property you can set on a participant’s join token: https://github.com/livekit/server-sdk-js/blob/7d7b2d0f459909d942d423bb1d39945afb3e04d0/src/grants.ts#L56
h
But this means that only this particular participant is invisible, right? Want I want to achieve is to hide other participants unless I’m allowed to see them.
1
m
so I understand clearly: you need to actually hide them, in data, versus simply hiding them in the UI?
h
That’s correct, I also don’t want to allow to read chat messages (data channel) until the permission is granted.
m
from a permissions perspective, I don’t think this is currently supported. cc @dry-elephant-14928 @polite-kilobyte-67570 for visibility
p
the closest we have right now for this is the permissions API https://docs.livekit.io/client-sdk-js/classes/LocalParticipant.html#setTrackSubscriptionPermissions this does not cover data messages however.
h
I just wondered whether that’s possible in LiveKit directly. So probably the only way to achieve that I want is to not allow my participant to connect to the room (don’t give him JWT).
d
Yeah, I think not allowing them to connect would be the path forward today. I am curious though, what is your use case here? Are you trying to allow the participant to connect as a publish-only participant?
h
@dry-elephant-14928 I want to let people into the room only when I’m ready to talk to them. But I want to know that they are waiting.
d
ah got it. so you are thinking of updating their permissions afterwards?
h
Yes
d
is it an issue if they could see the other participants.. but are not able to subscribe to their tracks?
I think it's not uncommon for meeting apps to show you who's already in the meeting on the waiting page
h
That’s exactly the issue. There may be people that I don’t want to allow to see others until the others left.