Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

Commit

Permalink
added the condition for the offset from bottom greater than 1000px
Browse files Browse the repository at this point in the history
  • Loading branch information
sridhar02 committed Jul 8, 2020
1 parent e0560e7 commit d32d9cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/toast_wrapper/toast_wrapper.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class ToastWrapper extends React.PureComponent {
}

// show unread toast on mount when channel is not at bottom and unread count greater than 0
if (typeof showUnreadToast === 'undefined' && props.atBottom !== null) {
if (typeof showUnreadToast === 'undefined' && props.atBottom !== null && props.initScrollOffsetFromBottom > 1000) {
showUnreadToast = unreadCount > 0 && !props.atBottom;
}

Expand Down

0 comments on commit d32d9cc

Please sign in to comment.