|
|
@ -401,6 +401,12 @@ const statuses = {
|
|
|
|
setNotificationsSilence ({ rootState, commit }, { value }) {
|
|
|
|
setNotificationsSilence ({ rootState, commit }, { value }) {
|
|
|
|
commit('setNotificationsSilence', { value })
|
|
|
|
commit('setNotificationsSilence', { value })
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
stopFetchingNotifications ({ rootState, commit }) {
|
|
|
|
|
|
|
|
if (rootState.statuses.notifications.fetcherId) {
|
|
|
|
|
|
|
|
window.clearInterval(rootState.statuses.notifications.fetcherId)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
commit('setNotificationFetcher', { fetcherId: null })
|
|
|
|
|
|
|
|
},
|
|
|
|
deleteStatus ({ rootState, commit }, status) {
|
|
|
|
deleteStatus ({ rootState, commit }, status) {
|
|
|
|
commit('setDeleted', { status })
|
|
|
|
commit('setDeleted', { status })
|
|
|
|
apiService.deleteStatus({ id: status.id, credentials: rootState.users.currentUser.credentials })
|
|
|
|
apiService.deleteStatus({ id: status.id, credentials: rootState.users.currentUser.credentials })
|
|
|
|