From d51b2b48d1859b27b5cf53671545dde7c258ce30 Mon Sep 17 00:00:00 2001 From: Scott Nonnenberg Date: Thu, 26 Jul 2018 19:36:21 -0700 Subject: [PATCH] Workaround for not ending up at bottom of conversation --- js/views/conversation_view.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/views/conversation_view.js b/js/views/conversation_view.js index 410ed1b4a..e4bbe5c1e 100644 --- a/js/views/conversation_view.js +++ b/js/views/conversation_view.js @@ -747,6 +747,10 @@ this.addScrollDownButtonWithCount(unreadCount); } }, 1); + } else if (this.view.atBottom()) { + // If we already thought we were at the bottom, then ensure that's the case. + // Attempting to account for unpredictable completion of message rendering. + setTimeout(() => this.view.scrollToBottom(), 1); } },