Simplify showing/hiding "More" button of a new preview on active channel
This commit is contained in:
parent
d55420faae
commit
bb16b3e30b
@ -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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user