Browse Source

support for custom meeting URL

master
David Haukeness 5 years ago
parent
commit
5cbd85b048
No known key found for this signature in database
GPG Key ID: 54F2372DDB7F9462
  1. 4
      jitsi.go

4
jitsi.go

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

Loading…
Cancel
Save