How can i change start call duration after members has to join more than one user in the room?

Hello,
now i have to change on mod_conference_duration_component.lua file as occupant_joined method and it’s not work the first person but it’s working for another person.

Help me please…thank you

You need changes and in lib-jitsi-meet or and jitsi-meet for the first person.

@damencho thank you for your answer. Can you please tell me for the idea to fix it on jitsi-meet?

i have to check for ConferenceTimer.js file

const { conferenceTimestamp } = state[‘features/base/conference’];

conferenceTimestamp it’s alway response to 0 for the first person after i have to change logic on

mod_conference_duration_component.lua

if participant_count > 1 then
to
if participant_count > 2 then

On a second thought if you change when a second joins to send update to the first and second with 0 duration, will that work?

Currently it sends only to the second one, make it 0 and send it to both and I hope it will be back to zero for the first one.

@damencho thank you for the solution i will try to fix it and response to you later…thanks again

@damencho wow!! that’s work…thank you so much.
then i have to fix for like this

if participant_count == 3 then
       for _, participant in room:each_occupant() do
            local stanza = st.message({
                    from = module.host;
                    to = participant.jid;
            })
            :tag("json-message", {xmlns='http://jitsi.org/jitmeet'})
            :text(json.encode(body_json)):up();

            room:route_stanza(stanza);
       end
    else
       local stanza = st.message({
        from = module.host;
        to = occupant.jid;
       })
       :tag("json-message", {xmlns='http://jitsi.org/jitmeet'})
       :text(json.encode(body_json)):up();

       room:route_stanza(stanza);
    end