feat: add Message Handling for jitsi/lib-jitsi-meet/pull/2339 #13745
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is the corresponding xmpp prosody plugin addition in the breakout_rooms plugin for the PR jitsi/lib-jitsi-meet#2339
There may be changes necessary to this, as this lua code is not really complying with the TS Objects types. I was unable to figure out how the objects are correctly typed, so I just gathered as much info as I could from other plugins.
(lua is definitely not my main language, but it was requested in the other PR that this PR should also be created thus, here it is.)
TLDR: Goal is to allow moderators to send single text messages or a whole broadcast text message to all rooms within the same conference.
The "to" argument was chosen to be a composite of source room and occupant/participant nick, to give visual clarity that the message came from a different room.
This can be adjusted if needed.