mirror of
https://github.com/thelounge/thelounge
synced 2024-11-22 20:13:07 +00:00
parent
93265ef830
commit
b4951b1f86
1 changed files with 2 additions and 2 deletions
|
@ -15,6 +15,8 @@ function renderPreview(preview, msg) {
|
|||
return;
|
||||
}
|
||||
|
||||
preview.shown = preview.shown && options.shouldOpenMessagePreview(preview.type);
|
||||
|
||||
const template = $(templates.msg_preview({preview: preview}));
|
||||
const image = template.find("img:first");
|
||||
|
||||
|
@ -40,8 +42,6 @@ function appendPreview(preview, msg, template) {
|
|||
return;
|
||||
}
|
||||
|
||||
preview.shown = preview.shown && options.shouldOpenMessagePreview(preview.type);
|
||||
|
||||
const container = msg.closest(".messages");
|
||||
const channelId = container.closest(".chan").data("id") || -1;
|
||||
const activeChannelId = chat.find(".chan.active").data("id") || -2;
|
||||
|
|
Loading…
Reference in a new issue