support for custom meeting URL
This commit is contained in:
4
jitsi.go
4
jitsi.go
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user