From 4254f15b44a850faea2d5e929252b43f3a99aef4 Mon Sep 17 00:00:00 2001 From: Ryan Tharp Date: Wed, 26 Feb 2020 16:53:35 -0800 Subject: [PATCH] fix message still loading issue --- js/views/conversation_view.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/views/conversation_view.js b/js/views/conversation_view.js index 0550fa63e..34b25459f 100644 --- a/js/views/conversation_view.js +++ b/js/views/conversation_view.js @@ -1189,6 +1189,11 @@ 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? + continue; + } const { top } = position; // We're fully below the viewport, continue searching up.