mirror of
https://github.com/thelounge/thelounge
synced 2024-11-10 14:44:13 +00:00
Fix previews in actions ("/me") after page reload
This commit is contained in:
parent
ce0e460368
commit
5fb34ce93f
1 changed files with 4 additions and 6 deletions
|
@ -73,16 +73,14 @@ function buildChatMessage(data) {
|
|||
const msg = $(templates[template](data.msg));
|
||||
const text = msg.find(".text");
|
||||
|
||||
if (data.msg.previews.length) {
|
||||
data.msg.previews.forEach((preview) => {
|
||||
renderPreview(preview, msg);
|
||||
});
|
||||
}
|
||||
|
||||
if (template === "msg_action") {
|
||||
text.html(templates.actions[type](data.msg));
|
||||
}
|
||||
|
||||
data.msg.previews.forEach((preview) => {
|
||||
renderPreview(preview, msg);
|
||||
});
|
||||
|
||||
if ((type === "message" || type === "action") && chan.hasClass("channel")) {
|
||||
const nicks = chan.find(".users").data("nicks");
|
||||
if (nicks) {
|
||||
|
|
Loading…
Reference in a new issue