Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
Mario Danic 2018-06-02 12:46:54 +02:00
parent c442464a6f
commit 5ca20d3ea8

View File

@ -687,11 +687,12 @@ public class ChatController extends BaseController implements MessagesListAdapte
setSenderId();
}
}
boolean shouldScroll = layoutManager.findFirstVisibleItemPosition() == 0 ||
adapter.getItemCount() == 0;
if (!shouldScroll) {
if (!popupBubble.isShown() && layoutManager.findFirstVisibleItemPosition() != 0) {
if (!popupBubble.isShown()) {
newMessagesCount = 1;
popupBubble.show();
} else if (popupBubble.isShown()) {