Merge pull request #932 from neuroscr/fixconvview

Fix message still loading exception
pull/950/head
Vince 5 years ago committed by GitHub
commit 868ad39e88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1196,6 +1196,13 @@
const el = this.$(`#${message.id}`);
const position = el.position();
// This message is likely not loaded yet in the DOM
if (!position) {
// should this be break?
// eslint-disable-next-line no-continue
continue;
}
const { top } = position;
// We're fully below the viewport, continue searching up.

Loading…
Cancel
Save