From 8f255fbad4ee80718da6b2154c410995561729de Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Mon, 17 Dec 2018 19:14:38 +0300 Subject: Refactor follower/friends out of statuses/timeline into user_profile where it belongs. Changed display of profile to single panel with tabs. --- src/modules/statuses.js | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'src/modules/statuses.js') diff --git a/src/modules/statuses.js b/src/modules/statuses.js index 8cdd4e28..5bbf5f46 100644 --- a/src/modules/statuses.js +++ b/src/modules/statuses.js @@ -14,7 +14,6 @@ const emptyTl = () => ({ loading: false, followers: [], friends: [], - viewing: 'statuses', userId: 0, flushMarker: 0 }) @@ -399,16 +398,6 @@ export const mutations = { setNotificationsSilence (state, { value }) { state.notifications.desktopNotificationSilence = value }, - setProfileView (state, { v }) { - // load followers / friends only when needed - state.timelines['user'].viewing = v - }, - addFriends (state, { friends }) { - state.timelines['user'].friends = friends - }, - addFollowers (state, { followers }) { - state.timelines['user'].followers = followers - }, markNotificationsAsSeen (state) { each(state.notifications.data, (notification) => { notification.seen = true @@ -437,12 +426,6 @@ const statuses = { setNotificationsSilence ({ rootState, commit }, { value }) { commit('setNotificationsSilence', { value }) }, - addFriends ({ rootState, commit }, { friends }) { - commit('addFriends', { friends }) - }, - addFollowers ({ rootState, commit }, { followers }) { - commit('addFollowers', { followers }) - }, deleteStatus ({ rootState, commit }, status) { commit('setDeleted', { status }) apiService.deleteStatus({ id: status.id, credentials: rootState.users.currentUser.credentials }) -- cgit v1.2.3-70-g09d2