From 82de0addc738e462af4d224791dfcece620f927c Mon Sep 17 00:00:00 2001 From: Alejandro Alonso Date: Mon, 25 May 2015 14:46:26 +0200 Subject: [PATCH] Fixng Jit.si url videoconference generation --- app/coffee/modules/nav.coffee | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/app/coffee/modules/nav.coffee b/app/coffee/modules/nav.coffee index ec95aa6c..8c34d3ee 100644 --- a/app/coffee/modules/nav.coffee +++ b/app/coffee/modules/nav.coffee @@ -249,22 +249,25 @@ ProjectMenuDirective = ($log, $compile, $auth, $rootscope, $tgAuth, $location, $ container.replaceWith(dom) videoConferenceUrl = (project) -> - urlSeparator = "-" + urlFixer = (url) -> return url + if project.videoconferences == "appear-in" baseUrl = "https://appear.in/" else if project.videoconferences == "talky" baseUrl = "https://talky.io/" else if project.videoconferences == "jitsi" - urlSeparator = "" baseUrl = "https://meet.jit.si/" + urlFixer = (url) -> return url.replace(/ /g, "").replace(/-/g, "") else return "" if project.videoconferences_salt - url = "#{project.slug}#{urlSeparator}#{project.videoconferences_salt}" + url = "#{project.slug}-#{project.videoconferences_salt}" else url = "#{project.slug}" + url = urlFixer(url) + return baseUrl + url