diff options
| author | taehoon <th.dev91@gmail.com> | 2019-02-24 03:02:04 -0500 |
|---|---|---|
| committer | taehoon <th.dev91@gmail.com> | 2019-03-21 16:19:03 -0400 |
| commit | 3255950b0e9a16f2a477d606b91d90bed8a6cef7 (patch) | |
| tree | fd6d288c90d4dabe5d643bacc41b0275b6f04c55 /src/services/backend_interactor_service | |
| parent | 66e60572bc5f3f35a902417547c1d38e3665fbb7 (diff) | |
Add mute/unmute featrue and mutes management tab
Diffstat (limited to 'src/services/backend_interactor_service')
| -rw-r--r-- | src/services/backend_interactor_service/backend_interactor_service.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/services/backend_interactor_service/backend_interactor_service.js b/src/services/backend_interactor_service/backend_interactor_service.js index cbd0b733..674fb4a4 100644 --- a/src/services/backend_interactor_service/backend_interactor_service.js +++ b/src/services/backend_interactor_service/backend_interactor_service.js @@ -67,7 +67,9 @@ const backendInteractorService = (credentials) => { } const fetchMutes = () => apiService.fetchMutes({credentials}) - const fetchBlocks = (params) => apiService.fetchBlocks({credentials, ...params}) + const muteUser = (id) => apiService.muteUser({credentials, id}) + const unmuteUser = (id) => apiService.unmuteUser({credentials, id}) + const fetchBlocks = () => apiService.fetchBlocks({credentials}) const fetchFollowRequests = () => apiService.fetchFollowRequests({credentials}) const fetchOAuthTokens = () => apiService.fetchOAuthTokens({credentials}) const revokeOAuthToken = (id) => apiService.revokeOAuthToken({id, credentials}) @@ -102,6 +104,8 @@ const backendInteractorService = (credentials) => { startFetching, setUserMute, fetchMutes, + muteUser, + unmuteUser, fetchBlocks, fetchOAuthTokens, revokeOAuthToken, |
