Fix shift+click in chat manager

a13d3f643c7a8cc52761f36a128710152118b055

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +3 -2Ignore whitespace
public/scripts/bookmarks.js+3 -2
@@ -609,8 +609,9 @@ export function initBookmarks() {
609609
610610 $(document).on('click', '.select_chat_block, .mes_bookmark', async function (e) {
611611 // If shift is held down, we are not following the bookmark, but creating a new one
612- if (e.shiftKey) {
612+ const mes = $(this).closest('.mes');
613- const selectedMesId = $(this).closest('.mes').attr('mesid');
613+ if (e.shiftKey && mes.length) {
614+ const selectedMesId = mes.attr('mesid');
614615 await createNewBookmark(Number(selectedMesId));
615616 return;
616617 }