ChatWindow: stop blue line moving

This commit is contained in:
Liam Fitzgerald 2021-03-24 13:28:08 +10:00
parent 1093a80604
commit 0f674aab17
No known key found for this signature in database
GPG Key ID: D390E12C61D1CFFB

View File

@ -98,6 +98,10 @@ class ChatWindow extends Component<
calculateUnreadIndex() {
const { graph, unreadCount } = this.props;
const { state } = this;
if(state.unreadIndex.neq(bigInt.zero)) {
return;
}
const unreadIndex = graph.keys()[unreadCount];
if (!unreadIndex || unreadCount === 0) {
this.setState({