diff options
author | Dessalines <tyhou13@gmx.com> | 2020-02-04 11:19:05 -0500 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2020-02-04 11:19:05 -0500 |
commit | b0b50098a4079daa0622a1ff9b4c52774d1d1d9f (patch) | |
tree | 527c63d46ae091558d0195915972a6b81cf7963c /ui/src/components/main.tsx | |
parent | e4dfa5e52f911a6dbb5df41932a70dd9af3c9753 (diff) |
Websocket reconnect reload page data. Fixes #504
Diffstat (limited to 'ui/src/components/main.tsx')
-rw-r--r-- | ui/src/components/main.tsx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/src/components/main.tsx b/ui/src/components/main.tsx index 6d3e1815..0970381b 100644 --- a/ui/src/components/main.tsx +++ b/ui/src/components/main.tsx @@ -537,6 +537,8 @@ export class Main extends Component<any, MainState> { if (msg.error) { toast(i18n.t(msg.error), 'danger'); return; + } else if (msg.reconnect) { + this.fetchPosts(); } else if (res.op == UserOperation.GetFollowedCommunities) { let data = res.data as GetFollowedCommunitiesResponse; this.state.subscribedCommunities = data.communities; |