Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
feat(prosody): Add handling of a room-metadata-changed event.
Boris Grozevb5e059a0a980
diff --git a/resources/prosody-plugins/mod_room_metadata_component.lua b/resources/prosody-plugins/mod_room_metadata_component.luaindex 851488cbfb..44acd721d3 100644--- a/resources/prosody-plugins/mod_room_metadata_component.lua+++ b/resources/prosody-plugins/mod_room_metadata_component.lua@@ -86,7 +86,9 @@ function room_created(event)return ;end- room.jitsiMetadata = {};+ if not room.jitsiMetadata then+ room.jitsiMetadata = {};+ endendfunction on_message(event)@@ -172,6 +174,10 @@ function process_main_muc_loaded(main_muc, host_module)table.insert(event.form, getFormData(room));end);+ -- The room metadata was updated internally (from another module).+ host_module:hook("room-metadata-changed", function(event)+ broadcastMetadata(event.room);+ end);end-- process or waits to process the main muc component