Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

feat(visitors): Adds conference duration for visitors.

damenchoba1102100a2a
diff --git a/resources/extra-large-conference/prosody.cfg.lua.visitor.template b/resources/extra-large-conference/prosody.cfg.lua.visitor.template
index 162737d9f2..4ae60d8c1f 100644
--- a/resources/extra-large-conference/prosody.cfg.lua.visitor.template
+++ b/resources/extra-large-conference/prosody.cfg.lua.visitor.template
@@ -105,6 +105,7 @@ VirtualHost 'vX.meet.jitsi'
'external_services';
'smacks';
'jiconop';
+ 'conference_duration';
}
main_muc = 'conference.vX.meet.jitsi';
diff --git a/resources/prosody-plugins/mod_fmuc.lua b/resources/prosody-plugins/mod_fmuc.lua
index 177583ecb0..3004f20e36 100644
--- a/resources/prosody-plugins/mod_fmuc.lua
+++ b/resources/prosody-plugins/mod_fmuc.lua
@@ -526,6 +526,8 @@ local function iq_from_main_handler(event)
-- if this is update it will either set or remove the password
room:set_password(node.attr.password);
room._data.meetingId = node.attr.meetingId;
+ local createdTimestamp = node.attr.createdTimestamp;
+ room.created_timestamp = createdTimestamp and tonumber(createdTimestamp) or nil;
if node.attr.lobby == 'true' then
room._main_room_lobby_enabled = true;
diff --git a/resources/prosody-plugins/mod_visitors.lua b/resources/prosody-plugins/mod_visitors.lua
index 3377f566ac..ba944ff702 100644
--- a/resources/prosody-plugins/mod_visitors.lua
+++ b/resources/prosody-plugins/mod_visitors.lua
@@ -67,7 +67,8 @@ local function send_visitors_iq(conference_service, room, type)
:tag(type, { xmlns = 'jitsi:visitors',
password = type ~= 'disconnect' and room:get_password() or '',
lobby = room._data.lobbyroom and 'true' or 'false',
- meetingId = room._data.meetingId
+ meetingId = room._data.meetingId,
+ createdTimestamp = room.created_timestamp and tostring(room.created_timestamp) or nil
}):up();
module:send(connect_done);