mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
compose: Add video link button, powered by Jitsi.
This commit is contained in:
@@ -650,6 +650,15 @@ exports.initialize = function () {
|
||||
$("#preview_content").html(preview_html);
|
||||
}
|
||||
|
||||
$('#compose').on('click', '#video_link', function (e) {
|
||||
e.preventDefault();
|
||||
|
||||
var video_call_id = util.random_int(100000000000000, 999999999999999);
|
||||
var video_call_link = 'https://meet.jit.si/' + video_call_id;
|
||||
var video_call_link_text = '[' + _('Click to join video call') + '](' + video_call_link + ')';
|
||||
compose_state.insert_syntax_and_focus(video_call_link_text);
|
||||
});
|
||||
|
||||
$("#compose").on("click", "#markdown_preview", function (e) {
|
||||
e.preventDefault();
|
||||
var content = $("#new_message_content").val();
|
||||
|
||||
Reference in New Issue
Block a user