diff --git a/client/js/renderPreview.js b/client/js/renderPreview.js index 423d6398..1f4ddf77 100644 --- a/client/js/renderPreview.js +++ b/client/js/renderPreview.js @@ -101,9 +101,7 @@ function appendPreview(preview, msg, template) { if (activeChannelId === channelId) { // If this preview is in active channel, hide "More" button if necessary - if (preview.type === "link") { - window.requestAnimationFrame(showMoreIfNeeded); - } + previewContent.trigger("showMoreIfNeeded"); container.trigger("keepToBottom"); }