From c1b67d38d3ea64054a86a369b980b2a7a67aac1d Mon Sep 17 00:00:00 2001 From: sravan Date: Tue, 11 Aug 2026 22:47:15 +0530 Subject: [PATCH] #16: trim the schedule form when scheduling from a group A group's members are automatically the meeting's participants, so the Invite-participants, Invite-by-email and "Guests must be admitted by host" sections are noise there. openScheduleModal now omits them when a group id is present (inviteBlock is empty), and the email/participant/lobby handlers are null-guarded so the save path still works without those fields. Co-Authored-By: Claude Opus 4.8 --- server/public/home.html | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/server/public/home.html b/server/public/home.html index d33b2d3..4b010c9 100644 --- a/server/public/home.html +++ b/server/public/home.html @@ -4846,6 +4846,18 @@ function openScheduleModal(gid, editMtg){ const label12=m=>{ let h=Math.floor(m/60),mm=m%60; const ap=h<12?'AM':'PM'; let h12=h%12||12; return h12+':'+pad(mm)+' '+ap; }; const dateLabel=d=>d.toLocaleDateString([],{weekday:'short',month:'short',day:'numeric'}); const invitedIds=new Set(editing&&Array.isArray(editMtg.invitedIds)?editMtg.invitedIds:[]); + // #16: scheduling FROM a group doesn't need the invite-participants / invite-by-email / admit-by-host + // sections — the group's members are automatically the meeting's participants. Drop them for a group. + const fromGroup=!!gid; + const inviteBlock = fromGroup ? '' : ( + '' + + (CONTACTS.length>6?'':'') + + '
'+(CONTACTS.length?CONTACTS.map(c=>'').join(''):'
No contacts to invite
')+'
' + + '' + + '' + + '' + + '' + ); const ov=document.createElement('div'); ov.className='modal-ov'; ov.id='schedModal'; ov.innerHTML='