Grab mutes from server on patched servers.

This commit is contained in:
Roger Braun 2017-02-20 18:01:45 +01:00
parent 3fd0d0d1cb
commit 9c1093b6ca
4 changed files with 45 additions and 3 deletions

View file

@ -34,6 +34,12 @@ const backendInteractorService = (credentials) => {
return timelineFetcherService.startFetching({timeline, store, credentials})
}
const setUserMute = ({id, muted = true}) => {
return apiService.setUserMute({id, muted, credentials})
}
const fetchMutes = () => apiService.fetchMutes({credentials})
const backendInteractorServiceInstance = {
fetchStatus,
fetchConversation,
@ -43,7 +49,9 @@ const backendInteractorService = (credentials) => {
unfollowUser,
fetchAllFollowing,
verifyCredentials: apiService.verifyCredentials,
startFetching
startFetching,
setUserMute,
fetchMutes
}
return backendInteractorServiceInstance