support for custom meeting URL

This commit is contained in:
2020-04-01 16:14:24 +00:00
parent 889d7b9e01
commit 5cbd85b048

View File

@ -20,6 +20,7 @@ type phoneNumber struct {
type jitsiMeeting struct {
Name string
CustomServer string
ID string
Phone []phoneNumber
}
@ -34,8 +35,11 @@ func (j *jitsiMeeting) getJitsiName() error {
}
func (j *jitsiMeeting) getURL() string {
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 {
if len(j.ID) == 10 {