mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-12-23 19:31:33 +00:00
parent
565fc0abdb
commit
299285abb8
1 changed files with 5 additions and 3 deletions
8
ui/src/components/navbar.tsx
vendored
8
ui/src/components/navbar.tsx
vendored
|
@ -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,8 +193,10 @@ export class Navbar extends Component<any, NavbarState> {
|
||||||
page: 1,
|
page: 1,
|
||||||
limit: 9999,
|
limit: 9999,
|
||||||
};
|
};
|
||||||
WebSocketService.Instance.getReplies(repliesForm);
|
if (this.currentLocation !=='/inbox') {
|
||||||
this.state.fetchCount++;
|
WebSocketService.Instance.getReplies(repliesForm);
|
||||||
|
this.state.fetchCount++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue