diff options
| author | Shpuld Shpludson <shp@cock.li> | 2019-11-19 14:07:15 +0000 |
|---|---|---|
| committer | Shpuld Shpludson <shp@cock.li> | 2019-11-19 14:07:15 +0000 |
| commit | 8b3799680547fb054112446caca8fa47df5c7612 (patch) | |
| tree | 47ecda12ae4aacfc30329ac416cc6f8d0ae534a0 /src/modules/api.js | |
| parent | 377b8988b605111cac6e1b5d6d920283b3ba812b (diff) | |
| parent | 0995658757b89eeb38b78e997bec2d85b96296af (diff) | |
Merge branch 'fix-fetch-follow-request-for-mobile' into 'develop'
Fix follow request for mobile
See merge request pleroma/pleroma-fe!1005
Diffstat (limited to 'src/modules/api.js')
| -rw-r--r-- | src/modules/api.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/modules/api.js b/src/modules/api.js index eb6a7980..1293e3c8 100644 --- a/src/modules/api.js +++ b/src/modules/api.js @@ -43,6 +43,13 @@ const api = { const fetcher = store.state.backendInteractor.startFetchingNotifications({ store }) store.commit('addFetcher', { fetcherName: 'notifications', fetcher }) }, + startFetchingFollowRequest (store) { + // Don't start fetching if we already are. + if (store.state.fetchers['followRequest']) return + + const fetcher = store.state.backendInteractor.startFetchingFollowRequest({ store }) + store.commit('addFetcher', { fetcherName: 'followRequest', fetcher }) + }, stopFetching (store, fetcherName) { const fetcher = store.state.fetchers[fetcherName] window.clearInterval(fetcher) |
