Merge pull request #3270 from urbit/la/dismiss-unread

chat: dismiss unread on scroll to bottom
This commit is contained in:
matildepark 2020-08-10 21:15:10 -04:00 committed by GitHub
commit 3660d30cb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -99,6 +99,7 @@ export class ChatWindow extends Component {
scrollIsAtBottom() {
if (this.state.numPages !== 1) {
this.setState({ numPages: 1 });
this.dismissUnread();
}
}