SendCommandOnce on joining


I use sendCommandOnce to send a message from my room owner to all participants, that attached to this command via addCommandListener. I even attach to this command with my room owner. It is working.

If someone joins the room, only the last custom command will be invoked immediatley.

The strange behaviour
If the initial room owner closes the connection and rejoins, that last command will not be invoked.

Is there any good reason for this kind of behaviour?
How i can force the room owner to get the last commmand?

Thanks in advance

This command is carried in the presence of the participant, if the participant leaves there is no command.
And it is said Once as it will be added just on the next presence update, will not be added on subsequent updates. So if for example that participant who sent it mutes or unmutes which is reflected in presence that command is lost and participants joining will not receive it.
What do you want to achieve?

OK, i think i got it.

So summarize, and to check if i understand the right way:
The one who invoked the command carries it. If he disconnects and joins again, the command will be “lost” for everyone (with SendCommandOnce).

I am using a custom GUI and i want to synchronize the layout (hide/show elements etc.) between all clients. I thought this would be a clever way to bypass storing the information on the server :-P, but i guess i have to :smiling_face_with_tear:.

Thank you for your help mate, u guys are doing a really great job!

If that store will be performed by a moderator you can use jitsi-meet/prosody.cfg.lua-jvb.example at 06b67dcf4480e307c2313499a76bd7d88fac480e · jitsi/jitsi-meet · GitHub

I will have a look. Thanks!