add dailyco feature flag

This commit is contained in:
Bilal
2020-09-15 10:33:23 +03:00
parent afd51a51f0
commit 1aa4af074b
3 changed files with 12 additions and 2 deletions

View File

@@ -114,7 +114,12 @@ class BroadcastsController < ApplicationController
end
def conference_url_for(broadcast)
broadcast.video_conference_url_override.presence || url_for([broadcast.project, broadcast, :live_meeting])
if broadcast.video_conference_url_override.present?
broadcast.video_conference_url_override
else
conference_type = ENV['DAILYCO_ENABLED'] == '1' ? :live_meeting : :zoom_meeting
url_for([broadcast.project, broadcast, conference_type])
end
end
def log_create_analytics