mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-12-19 22:46:31 +00:00
parent
1c4b22a7fb
commit
11fe3436c2
1 changed files with 5 additions and 3 deletions
4
ui/src/components/navbar.tsx
vendored
4
ui/src/components/navbar.tsx
vendored
|
@ -182,7 +182,7 @@ export class Navbar extends Component<any, NavbarState> {
|
|||
|
||||
keepFetchingReplies() {
|
||||
this.fetchReplies();
|
||||
setInterval(() => this.fetchReplies(), 30000);
|
||||
setInterval(() => this.fetchReplies(), 15000);
|
||||
}
|
||||
|
||||
fetchReplies() {
|
||||
|
@ -193,10 +193,12 @@ export class Navbar extends Component<any, NavbarState> {
|
|||
page: 1,
|
||||
limit: 9999,
|
||||
};
|
||||
if (this.currentLocation !=='/inbox') {
|
||||
WebSocketService.Instance.getReplies(repliesForm);
|
||||
this.state.fetchCount++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
get currentLocation() {
|
||||
return this.context.router.history.location.pathname;
|
||||
|
|
Loading…
Reference in a new issue