mirror of
https://github.com/thelounge/thelounge
synced 2024-11-29 23:40:28 +00:00
Merge pull request #1348 from thelounge/astorije/fix-action-previews
Fix previews in actions ("/me") after page reload
This commit is contained in:
commit
ff757d4386
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