MM-13432 Remove unsed request flags from channel_members (#2490)

* Remove unsed request flags from channel_members

* Fix intial state to match redux state

* Update redux hash
This commit is contained in:
Sudheer 2019-01-04 18:52:00 +05:30 committed by GitHub
parent e27b57649a
commit f02e0fc4f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 110 deletions

View file

@ -55,18 +55,10 @@ const state = {
errors: [],
requests: {
channels: {
getChannel: {
status: 'not_started',
error: null,
},
getChannels: {
status: 'not_started',
error: null,
},
myMembers: {
status: 'not_started',
error: null,
},
createChannel: {
status: 'not_started',
error: null,
@ -75,31 +67,7 @@ const state = {
status: 'not_started',
error: null,
},
updateChannelNotifyProps: {
status: 'not_started',
error: null,
},
joinChannel: {
status: 'not_started',
error: null,
},
deleteChannel: {
status: 'not_started',
error: null,
},
updateLastViewedAt: {
status: 'not_started',
error: null,
},
getChannelStats: {
status: 'not_started',
error: null,
},
addChannelMember: {
status: 'not_started',
error: null,
},
removeChannelMember: {
myChannels: {
status: 'not_started',
error: null,
},
@ -135,30 +103,10 @@ const state = {
status: 'not_started',
error: null,
},
deletePost: {
status: 'not_started',
error: null,
},
getPostThread: {
status: 'not_started',
error: null,
},
getPosts: {
status: 'not_started',
error: null,
},
getPostsSince: {
status: 'not_started',
error: null,
},
getPostsBefore: {
status: 'not_started',
error: null,
},
getPostsAfter: {
status: 'not_started',
error: null,
},
},
teams: {
getMyTeams: {
@ -169,36 +117,16 @@ const state = {
status: 'not_started',
error: null,
},
createTeam: {
status: 'not_started',
error: null,
},
updateTeam: {
status: 'not_started',
error: null,
},
getMyTeamMembers: {
status: 'not_started',
error: null,
},
getTeamMembers: {
status: 'not_started',
error: null,
},
getTeamStats: {
status: 'not_started',
error: null,
},
addUserToTeam: {
status: 'not_started',
error: null,
},
removeUserFromTeam: {
joinTeam: {
status: 'not_started',
error: null,
},
},
users: {
checkMfa: {
status: 'not_started',
error: null,
},
login: {
status: 'not_started',
error: null,
@ -207,35 +135,11 @@ const state = {
status: 'not_started',
error: null,
},
getProfiles: {
autocompleteUsers: {
status: 'not_started',
error: null,
},
getProfilesInTeam: {
status: 'not_started',
error: null,
},
getProfilesInChannel: {
status: 'not_started',
error: null,
},
getProfilesNotInChannel: {
status: 'not_started',
error: null,
},
getStatusesByIds: {
status: 'not_started',
error: null,
},
getSessions: {
status: 'not_started',
error: null,
},
revokeSession: {
status: 'not_started',
error: null,
},
getAudits: {
updateMe: {
status: 'not_started',
error: null,
},

View file

@ -27,9 +27,6 @@ function makeMapStateToProps() {
currentChannelId,
currentChannelMembers,
currentUserId: state.entities.users.currentUserId,
requestStatus: state.requests.users.getProfilesInChannel.status,
searchRequestStatus: state.requests.users.searchProfiles.status,
removeMembersStatus: state.requests.channels.removeChannelMember.status,
theme: getTheme(state),
};
};

4
package-lock.json generated
View file

@ -8376,8 +8376,8 @@
"integrity": "sha1-izqsWIuKZuSXXjzepn97sylgH6w="
},
"mattermost-redux": {
"version": "github:mattermost/mattermost-redux#c8364a767889a8759969b8c1591b0c6ae5e1b77c",
"from": "github:mattermost/mattermost-redux#c8364a767889a8759969b8c1591b0c6ae5e1b77c",
"version": "github:mattermost/mattermost-redux#e6a49c935c4c3b732b374f5223d851ae44a80136",
"from": "github:mattermost/mattermost-redux#e6a49c935c4c3b732b374f5223d851ae44a80136",
"requires": {
"deep-equal": "1.0.1",
"eslint-plugin-header": "2.0.0",

View file

@ -17,7 +17,7 @@
"intl": "1.2.5",
"jail-monkey": "1.0.0",
"jsc-android": "236355.1.0",
"mattermost-redux": "github:mattermost/mattermost-redux#c8364a767889a8759969b8c1591b0c6ae5e1b77c",
"mattermost-redux": "github:mattermost/mattermost-redux#e6a49c935c4c3b732b374f5223d851ae44a80136",
"mime-db": "1.37.0",
"moment-timezone": "0.5.23",
"prop-types": "15.6.2",