From 5cbd85b048ba3e2e79476f3a2b3da20ed6531ee0 Mon Sep 17 00:00:00 2001 From: David Haukeness Date: Wed, 1 Apr 2020 16:14:24 +0000 Subject: [PATCH] support for custom meeting URL --- jitsi.go | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/jitsi.go b/jitsi.go index 4524b91..d4ee545 100644 --- a/jitsi.go +++ b/jitsi.go @@ -19,9 +19,10 @@ type phoneNumber struct { } type jitsiMeeting struct { - Name string - ID string - Phone []phoneNumber + Name string + CustomServer string + ID string + Phone []phoneNumber } func (j *jitsiMeeting) getJitsiName() error { @@ -34,7 +35,10 @@ func (j *jitsiMeeting) getJitsiName() error { } func (j *jitsiMeeting) getURL() string { - return fmt.Sprintf("https://meet.jit.si/%s", j.Name) + if j.CustomServer == "" { + return fmt.Sprintf("https://meet.jit.si/%s", j.Name) + } + return fmt.Sprintf("%s/%s", j.CustomServer, j.Name) } func (j *jitsiMeeting) getPIN() string {