Browse Source

Fixing inbox refresh issue.

- Fixes #265
unoptim
Dessalines 3 years ago
parent
commit
aeb641465a
  1. 8
      src/components/navbar.tsx

8
src/components/navbar.tsx

@ -182,7 +182,7 @@ export class Navbar extends Component<any, NavbarState> {
keepFetchingReplies() {
this.fetchReplies();
setInterval(() => this.fetchReplies(), 30000);
setInterval(() => this.fetchReplies(), 15000);
}
fetchReplies() {
@ -193,8 +193,10 @@ export class Navbar extends Component<any, NavbarState> {
page: 1,
limit: 9999,
};
WebSocketService.Instance.getReplies(repliesForm);
this.state.fetchCount++;
if (this.currentLocation !=='/inbox') {
WebSocketService.Instance.getReplies(repliesForm);
this.state.fetchCount++;
}
}
}

Loading…
Cancel
Save