Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
lightbox: Remove any video players when navigating thumbnails.
Karl Stolleyb8037a998036
diff --git a/web/src/lightbox.ts b/web/src/lightbox.tsindex 6d89c23868d..bdac3df2ea9 100644--- a/web/src/lightbox.ts+++ b/web/src/lightbox.ts@@ -647,6 +647,9 @@ export function initialize(): void {});$("#lightbox_overlay").on("click", ".image-list .image", function (this: HTMLElement) {+ // Remove any video players so sound does not continue when+ // navigating away from a video that might be playing+ remove_video_players();const $media_list = $(this).parent();let $original_media_element;const is_video = $(this).hasClass("lightbox_video");