Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

lightbox: Remove unnecessary `open_image` call.

Aman Agrawal2716b7f2c69c
diff --git a/web/src/lightbox.ts b/web/src/lightbox.ts
index 5597a8f007c..f5df002c39d 100644
--- a/web/src/lightbox.ts
+++ b/web/src/lightbox.ts
@@ -694,8 +694,6 @@ export function initialize(): void {
$("#lightbox_overlay").on("click", ".lightbox-zoom-reset", () => {
if (!$("#lightbox_overlay .lightbox-zoom-reset").hasClass("disabled")) {
- const $img = $("#lightbox_overlay").find<HTMLImageElement>(".image-preview img");
- open_image($img);
pan_zoom_control.reset();
}
});