mirror of https://github.com/LemmyNet/lemmy.git
parent
565fc0abdb
commit
299285abb8
|
@ -182,7 +182,7 @@ export class Navbar extends Component<any, NavbarState> {
|
||||||
|
|
||||||
keepFetchingReplies() {
|
keepFetchingReplies() {
|
||||||
this.fetchReplies();
|
this.fetchReplies();
|
||||||
setInterval(() => this.fetchReplies(), 30000);
|
setInterval(() => this.fetchReplies(), 15000);
|
||||||
}
|
}
|
||||||
|
|
||||||
fetchReplies() {
|
fetchReplies() {
|
||||||
|
@ -193,10 +193,12 @@ export class Navbar extends Component<any, NavbarState> {
|
||||||
page: 1,
|
page: 1,
|
||||||
limit: 9999,
|
limit: 9999,
|
||||||
};
|
};
|
||||||
|
if (this.currentLocation !=='/inbox') {
|
||||||
WebSocketService.Instance.getReplies(repliesForm);
|
WebSocketService.Instance.getReplies(repliesForm);
|
||||||
this.state.fetchCount++;
|
this.state.fetchCount++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
get currentLocation() {
|
get currentLocation() {
|
||||||
return this.context.router.history.location.pathname;
|
return this.context.router.history.location.pathname;
|
||||||
|
|
Loading…
Reference in New Issue