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,
|
hasUnreadMessages,
|
||||||
scrollPosition,
|
scrollPosition,
|
||||||
} = this.props;
|
} = this.props;
|
||||||
|
const { userScrolledBack } = this.state;
|
||||||
|
|
||||||
if (hasUnreadMessages && scrollPosition !== null) {
|
if (hasUnreadMessages && userScrolledBack) {
|
||||||
return (
|
return (
|
||||||
<Button
|
<Button
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
|
Loading…
Reference in New Issue
Block a user