mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 08:26:11 +00:00
settings: Add option to control Jitsi video chat integration.
Fixes #8922.
This commit is contained in:
@@ -905,8 +905,12 @@ exports.initialize = function () {
|
||||
$('#compose').on('click', '#video_link', function (e) {
|
||||
e.preventDefault();
|
||||
|
||||
if (page_params.jitsi_server_url === null) {
|
||||
return;
|
||||
}
|
||||
|
||||
var video_call_id = util.random_int(100000000000000, 999999999999999);
|
||||
var video_call_link = 'https://meet.jit.si/' + video_call_id;
|
||||
var video_call_link = page_params.jitsi_server_url + "/" + video_call_id;
|
||||
var video_call_link_text = '[' + _('Click to join video call') + '](' + video_call_link + ')';
|
||||
compose_ui.insert_syntax_and_focus(video_call_link_text);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user