mirror of
https://github.com/urbit/shrub.git
synced 2024-12-28 14:42:53 +03:00
ChatWindow: stop blue line moving
This commit is contained in:
parent
1093a80604
commit
0f674aab17
@ -98,6 +98,10 @@ class ChatWindow extends Component<
|
|||||||
|
|
||||||
calculateUnreadIndex() {
|
calculateUnreadIndex() {
|
||||||
const { graph, unreadCount } = this.props;
|
const { graph, unreadCount } = this.props;
|
||||||
|
const { state } = this;
|
||||||
|
if(state.unreadIndex.neq(bigInt.zero)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
const unreadIndex = graph.keys()[unreadCount];
|
const unreadIndex = graph.keys()[unreadCount];
|
||||||
if (!unreadIndex || unreadCount === 0) {
|
if (!unreadIndex || unreadCount === 0) {
|
||||||
this.setState({
|
this.setState({
|
||||||
|
Loading…
Reference in New Issue
Block a user