lightbox: Show first media element on hotkey activation.

This commit is contained in:
Karl Stolley 2024-09-27 10:55:28 -05:00 committed by Tim Abbott
parent cac4adac5f
commit 2e26c3bb9d
1 changed files with 4 additions and 1 deletions

View File

@ -469,7 +469,10 @@ export function show_from_selected_message(): void {
if ($media.length !== 0) {
const open_media = build_open_media_function(undefined);
open_media($media);
// Since this function is only called from the "show_lightbox"
// hotkey, we don't have a selected image to load. Therefore,
// we show the first one returned from the traversal above.
open_media($media.first());
}
}