Fix scroll to bottom on unread messages
This commit is contained in:
parent
b9fab56ca4
commit
46a5ac6eb5
@ -231,8 +231,9 @@ class MessageList extends Component {
|
||||
hasUnreadMessages,
|
||||
scrollPosition,
|
||||
} = this.props;
|
||||
const { userScrolledBack } = this.state;
|
||||
|
||||
if (hasUnreadMessages && scrollPosition !== null) {
|
||||
if (hasUnreadMessages && userScrolledBack) {
|
||||
return (
|
||||
<Button
|
||||
aria-hidden="true"
|
||||
|
Loading…
Reference in New Issue
Block a user