mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Renamed RECIEVED_* to RECEIVED_*
This commit is contained in:
@@ -114,7 +114,7 @@ export default class ChannelHeader extends React.Component {
|
||||
}
|
||||
|
||||
AppDispatcher.handleServerAction({
|
||||
type: ActionTypes.RECIEVED_SEARCH_TERM,
|
||||
type: ActionTypes.RECEIVED_SEARCH_TERM,
|
||||
term: terms,
|
||||
do_search: true,
|
||||
is_mention_search: true
|
||||
|
||||
@@ -152,7 +152,7 @@ class CreateComment extends React.Component {
|
||||
ChannelStore.setChannelMember(member);
|
||||
|
||||
AppDispatcher.handleServerAction({
|
||||
type: ActionTypes.RECIEVED_POST,
|
||||
type: ActionTypes.RECEIVED_POST,
|
||||
post: data
|
||||
});
|
||||
}.bind(this),
|
||||
@@ -216,7 +216,7 @@ class CreateComment extends React.Component {
|
||||
}
|
||||
|
||||
AppDispatcher.handleViewAction({
|
||||
type: ActionTypes.RECIEVED_EDIT_POST,
|
||||
type: ActionTypes.RECEIVED_EDIT_POST,
|
||||
refocusId: '#reply_textbox',
|
||||
title: this.props.intl.formatMessage(holders.commentTitle),
|
||||
message: lastPost.message,
|
||||
|
||||
@@ -364,7 +364,7 @@ class CreatePost extends React.Component {
|
||||
var type = (lastPost.root_id && lastPost.root_id.length > 0) ? formatMessage(holders.comment) : formatMessage(holders.post);
|
||||
|
||||
AppDispatcher.handleViewAction({
|
||||
type: ActionTypes.RECIEVED_EDIT_POST,
|
||||
type: ActionTypes.RECEIVED_EDIT_POST,
|
||||
refocusId: '#post_textbox',
|
||||
title: type,
|
||||
message: lastPost.message,
|
||||
|
||||
@@ -62,12 +62,12 @@ export default class DeletePostModal extends React.Component {
|
||||
var selectedPost = selectedList.posts[selectedList.order[0]];
|
||||
if ((selectedPost.id === this.state.post.id && !this.state.root_id) || selectedPost.root_id === this.state.post.id) {
|
||||
AppDispatcher.handleServerAction({
|
||||
type: ActionTypes.RECIEVED_SEARCH,
|
||||
type: ActionTypes.RECEIVED_SEARCH,
|
||||
results: null
|
||||
});
|
||||
|
||||
AppDispatcher.handleServerAction({
|
||||
type: ActionTypes.RECIEVED_POST_SELECTED,
|
||||
type: ActionTypes.RECEIVED_POST_SELECTED,
|
||||
results: null
|
||||
});
|
||||
} else if (selectedPost.id === this.state.post.id && this.state.root_id) {
|
||||
@@ -76,12 +76,12 @@ export default class DeletePostModal extends React.Component {
|
||||
delete selectedList.posts[selectedPost.id];
|
||||
|
||||
AppDispatcher.handleServerAction({
|
||||
type: ActionTypes.RECIEVED_POST_SELECTED,
|
||||
type: ActionTypes.RECEIVED_POST_SELECTED,
|
||||
post_list: selectedList
|
||||
});
|
||||
|
||||
AppDispatcher.handleServerAction({
|
||||
type: ActionTypes.RECIEVED_SEARCH,
|
||||
type: ActionTypes.RECEIVED_SEARCH,
|
||||
results: null
|
||||
});
|
||||
}
|
||||
|
||||
@@ -68,7 +68,7 @@ class EditChannelHeaderModal extends React.Component {
|
||||
this.onHide();
|
||||
|
||||
AppDispatcher.handleServerAction({
|
||||
type: Constants.ActionTypes.RECIEVED_CHANNEL,
|
||||
type: Constants.ActionTypes.RECEIVED_CHANNEL,
|
||||
channel
|
||||
});
|
||||
},
|
||||
|
||||
@@ -82,12 +82,12 @@ export default class Navbar extends React.Component {
|
||||
var windowWidth = $(window).outerWidth();
|
||||
if (windowWidth <= 768) {
|
||||
AppDispatcher.handleServerAction({
|
||||
type: ActionTypes.RECIEVED_SEARCH,
|
||||
type: ActionTypes.RECEIVED_SEARCH,
|
||||
results: null
|
||||
});
|
||||
|
||||
AppDispatcher.handleServerAction({
|
||||
type: ActionTypes.RECIEVED_POST_SELECTED,
|
||||
type: ActionTypes.RECEIVED_POST_SELECTED,
|
||||
results: null
|
||||
});
|
||||
|
||||
|
||||
@@ -31,12 +31,12 @@ export default class Post extends React.Component {
|
||||
data.posts = this.props.posts;
|
||||
|
||||
AppDispatcher.handleServerAction({
|
||||
type: ActionTypes.RECIEVED_POST_SELECTED,
|
||||
type: ActionTypes.RECEIVED_POST_SELECTED,
|
||||
post_list: data
|
||||
});
|
||||
|
||||
AppDispatcher.handleServerAction({
|
||||
type: ActionTypes.RECIEVED_SEARCH,
|
||||
type: ActionTypes.RECEIVED_SEARCH,
|
||||
results: null
|
||||
});
|
||||
}
|
||||
@@ -59,7 +59,7 @@ export default class Post extends React.Component {
|
||||
ChannelStore.setChannelMember(member);
|
||||
|
||||
AppDispatcher.handleServerAction({
|
||||
type: ActionTypes.RECIEVED_POST,
|
||||
type: ActionTypes.RECEIVED_POST,
|
||||
post: data
|
||||
});
|
||||
},
|
||||
|
||||
@@ -24,19 +24,19 @@ export default class PostDeletedModal extends React.Component {
|
||||
}
|
||||
handleClose() {
|
||||
AppDispatcher.handleServerAction({
|
||||
type: ActionTypes.RECIEVED_SEARCH,
|
||||
type: ActionTypes.RECEIVED_SEARCH,
|
||||
results: null
|
||||
});
|
||||
|
||||
AppDispatcher.handleServerAction({
|
||||
type: ActionTypes.RECIEVED_SEARCH_TERM,
|
||||
type: ActionTypes.RECEIVED_SEARCH_TERM,
|
||||
term: null,
|
||||
do_search: false,
|
||||
is_mention_search: false
|
||||
});
|
||||
|
||||
AppDispatcher.handleServerAction({
|
||||
type: ActionTypes.RECIEVED_POST_SELECTED,
|
||||
type: ActionTypes.RECEIVED_POST_SELECTED,
|
||||
results: null
|
||||
});
|
||||
}
|
||||
|
||||
@@ -49,7 +49,7 @@ class RhsComment extends React.Component {
|
||||
ChannelStore.setChannelMember(member);
|
||||
|
||||
AppDispatcher.handleServerAction({
|
||||
type: ActionTypes.RECIEVED_POST,
|
||||
type: ActionTypes.RECEIVED_POST,
|
||||
post: data
|
||||
});
|
||||
},
|
||||
@@ -267,4 +267,4 @@ RhsComment.propTypes = {
|
||||
post: React.PropTypes.object
|
||||
};
|
||||
|
||||
export default injectIntl(RhsComment);
|
||||
export default injectIntl(RhsComment);
|
||||
|
||||
@@ -21,12 +21,12 @@ export default class RhsHeaderPost extends React.Component {
|
||||
e.preventDefault();
|
||||
|
||||
AppDispatcher.handleServerAction({
|
||||
type: ActionTypes.RECIEVED_SEARCH,
|
||||
type: ActionTypes.RECEIVED_SEARCH,
|
||||
results: null
|
||||
});
|
||||
|
||||
AppDispatcher.handleServerAction({
|
||||
type: ActionTypes.RECIEVED_POST_SELECTED,
|
||||
type: ActionTypes.RECEIVED_POST_SELECTED,
|
||||
results: null
|
||||
});
|
||||
}
|
||||
@@ -34,14 +34,14 @@ export default class RhsHeaderPost extends React.Component {
|
||||
e.preventDefault();
|
||||
|
||||
AppDispatcher.handleServerAction({
|
||||
type: ActionTypes.RECIEVED_SEARCH_TERM,
|
||||
type: ActionTypes.RECEIVED_SEARCH_TERM,
|
||||
term: this.props.fromSearch,
|
||||
do_search: true,
|
||||
is_mention_search: this.props.isMentionSearch
|
||||
});
|
||||
|
||||
AppDispatcher.handleServerAction({
|
||||
type: ActionTypes.RECIEVED_POST_SELECTED,
|
||||
type: ActionTypes.RECEIVED_POST_SELECTED,
|
||||
results: null
|
||||
});
|
||||
}
|
||||
|
||||
@@ -74,19 +74,19 @@ class SearchBar extends React.Component {
|
||||
e.preventDefault();
|
||||
|
||||
AppDispatcher.handleServerAction({
|
||||
type: ActionTypes.RECIEVED_SEARCH,
|
||||
type: ActionTypes.RECEIVED_SEARCH,
|
||||
results: null
|
||||
});
|
||||
|
||||
AppDispatcher.handleServerAction({
|
||||
type: ActionTypes.RECIEVED_SEARCH_TERM,
|
||||
type: ActionTypes.RECEIVED_SEARCH_TERM,
|
||||
term: null,
|
||||
do_search: false,
|
||||
is_mention_search: false
|
||||
});
|
||||
|
||||
AppDispatcher.handleServerAction({
|
||||
type: ActionTypes.RECIEVED_POST_SELECTED,
|
||||
type: ActionTypes.RECEIVED_POST_SELECTED,
|
||||
results: null
|
||||
});
|
||||
}
|
||||
@@ -117,7 +117,7 @@ class SearchBar extends React.Component {
|
||||
}
|
||||
|
||||
AppDispatcher.handleServerAction({
|
||||
type: ActionTypes.RECIEVED_SEARCH,
|
||||
type: ActionTypes.RECEIVED_SEARCH,
|
||||
results: data,
|
||||
is_mention_search: isMentionSearch
|
||||
});
|
||||
|
||||
@@ -19,19 +19,19 @@ export default class SearchResultsHeader extends React.Component {
|
||||
e.preventDefault();
|
||||
|
||||
AppDispatcher.handleServerAction({
|
||||
type: ActionTypes.RECIEVED_SEARCH,
|
||||
type: ActionTypes.RECEIVED_SEARCH,
|
||||
results: null
|
||||
});
|
||||
|
||||
AppDispatcher.handleServerAction({
|
||||
type: ActionTypes.RECIEVED_SEARCH_TERM,
|
||||
type: ActionTypes.RECEIVED_SEARCH_TERM,
|
||||
term: null,
|
||||
do_search: false,
|
||||
is_mention_search: false
|
||||
});
|
||||
|
||||
AppDispatcher.handleServerAction({
|
||||
type: ActionTypes.RECIEVED_POST_SELECTED,
|
||||
type: ActionTypes.RECEIVED_POST_SELECTED,
|
||||
results: null
|
||||
});
|
||||
}
|
||||
@@ -72,4 +72,4 @@ export default class SearchResultsHeader extends React.Component {
|
||||
|
||||
SearchResultsHeader.propTypes = {
|
||||
isMentionSearch: React.PropTypes.bool
|
||||
};
|
||||
};
|
||||
|
||||
@@ -84,7 +84,7 @@ class ImportThemeModal extends React.Component {
|
||||
Client.updateUser(user,
|
||||
(data) => {
|
||||
AppDispatcher.handleServerAction({
|
||||
type: ActionTypes.RECIEVED_ME,
|
||||
type: ActionTypes.RECEIVED_ME,
|
||||
me: data
|
||||
});
|
||||
|
||||
@@ -212,4 +212,4 @@ ImportThemeModal.propTypes = {
|
||||
intl: intlShape.isRequired
|
||||
};
|
||||
|
||||
export default injectIntl(ImportThemeModal);
|
||||
export default injectIntl(ImportThemeModal);
|
||||
|
||||
@@ -107,7 +107,7 @@ export default class ThemeSetting extends React.Component {
|
||||
Client.updateUser(user,
|
||||
(data) => {
|
||||
AppDispatcher.handleServerAction({
|
||||
type: ActionTypes.RECIEVED_ME,
|
||||
type: ActionTypes.RECEIVED_ME,
|
||||
me: data
|
||||
});
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ export function emitPostFocusEvent(postId) {
|
||||
postId,
|
||||
(data) => {
|
||||
AppDispatcher.handleServerAction({
|
||||
type: ActionTypes.RECIEVED_FOCUSED_POST,
|
||||
type: ActionTypes.RECEIVED_FOCUSED_POST,
|
||||
postId,
|
||||
post_list: data
|
||||
});
|
||||
@@ -47,13 +47,13 @@ export function emitPostFocusRightHandSideFromSearch(post, isMentionSearch) {
|
||||
post.id,
|
||||
(data) => {
|
||||
AppDispatcher.handleServerAction({
|
||||
type: ActionTypes.RECIEVED_POST_SELECTED,
|
||||
type: ActionTypes.RECEIVED_POST_SELECTED,
|
||||
post_list: data,
|
||||
from_search: SearchStore.getSearchTerm()
|
||||
});
|
||||
|
||||
AppDispatcher.handleServerAction({
|
||||
type: ActionTypes.RECIEVED_SEARCH,
|
||||
type: ActionTypes.RECEIVED_SEARCH,
|
||||
results: null,
|
||||
is_mention_search: isMentionSearch
|
||||
});
|
||||
@@ -89,7 +89,7 @@ export function emitLoadMorePostsFocusedBottomEvent() {
|
||||
|
||||
export function emitPostRecievedEvent(post) {
|
||||
AppDispatcher.handleServerAction({
|
||||
type: ActionTypes.RECIEVED_POST,
|
||||
type: ActionTypes.RECEIVED_POST,
|
||||
post
|
||||
});
|
||||
}
|
||||
@@ -177,7 +177,7 @@ export function emitClearSuggestions(suggestionId) {
|
||||
|
||||
export function emitPreferenceChangedEvent(preference) {
|
||||
AppDispatcher.handleServerAction({
|
||||
type: Constants.ActionTypes.RECIEVED_PREFERENCE,
|
||||
type: Constants.ActionTypes.RECEIVED_PREFERENCE,
|
||||
preference
|
||||
});
|
||||
}
|
||||
|
||||
@@ -135,19 +135,19 @@ AdminStoreClass.dispatchToken = AppDispatcher.register((payload) => {
|
||||
var action = payload.action;
|
||||
|
||||
switch (action.type) {
|
||||
case ActionTypes.RECIEVED_LOGS:
|
||||
case ActionTypes.RECEIVED_LOGS:
|
||||
AdminStore.saveLogs(action.logs);
|
||||
AdminStore.emitLogChange();
|
||||
break;
|
||||
case ActionTypes.RECIEVED_SERVER_AUDITS:
|
||||
case ActionTypes.RECEIVED_SERVER_AUDITS:
|
||||
AdminStore.saveAudits(action.audits);
|
||||
AdminStore.emitAuditChange();
|
||||
break;
|
||||
case ActionTypes.RECIEVED_CONFIG:
|
||||
case ActionTypes.RECEIVED_CONFIG:
|
||||
AdminStore.saveConfig(action.config);
|
||||
AdminStore.emitConfigChange();
|
||||
break;
|
||||
case ActionTypes.RECIEVED_ALL_TEAMS:
|
||||
case ActionTypes.RECEIVED_ALL_TEAMS:
|
||||
AdminStore.saveAllTeams(action.teams);
|
||||
AdminStore.emitAllTeamsChange();
|
||||
break;
|
||||
|
||||
@@ -296,7 +296,7 @@ ChannelStore.dispatchToken = AppDispatcher.register((payload) => {
|
||||
ChannelStore.emitChange();
|
||||
break;
|
||||
|
||||
case ActionTypes.RECIEVED_FOCUSED_POST: {
|
||||
case ActionTypes.RECEIVED_FOCUSED_POST: {
|
||||
const post = action.post_list.posts[action.postId];
|
||||
ChannelStore.setCurrentId(post.channel_id);
|
||||
ChannelStore.setPostMode(ChannelStore.POST_MODE_FOCUS);
|
||||
@@ -304,7 +304,7 @@ ChannelStore.dispatchToken = AppDispatcher.register((payload) => {
|
||||
break;
|
||||
}
|
||||
|
||||
case ActionTypes.RECIEVED_CHANNELS:
|
||||
case ActionTypes.RECEIVED_CHANNELS:
|
||||
ChannelStore.storeChannels(action.channels);
|
||||
ChannelStore.storeChannelMembers(action.members);
|
||||
currentId = ChannelStore.getCurrentId();
|
||||
@@ -315,7 +315,7 @@ ChannelStore.dispatchToken = AppDispatcher.register((payload) => {
|
||||
ChannelStore.emitChange();
|
||||
break;
|
||||
|
||||
case ActionTypes.RECIEVED_CHANNEL:
|
||||
case ActionTypes.RECEIVED_CHANNEL:
|
||||
ChannelStore.pStoreChannel(action.channel);
|
||||
if (action.member) {
|
||||
ChannelStore.pStoreChannelMember(action.member);
|
||||
@@ -328,12 +328,12 @@ ChannelStore.dispatchToken = AppDispatcher.register((payload) => {
|
||||
ChannelStore.emitChange();
|
||||
break;
|
||||
|
||||
case ActionTypes.RECIEVED_MORE_CHANNELS:
|
||||
case ActionTypes.RECEIVED_MORE_CHANNELS:
|
||||
ChannelStore.storeMoreChannels(action.channels);
|
||||
ChannelStore.emitMoreChange();
|
||||
break;
|
||||
|
||||
case ActionTypes.RECIEVED_CHANNEL_EXTRA_INFO:
|
||||
case ActionTypes.RECEIVED_CHANNEL_EXTRA_INFO:
|
||||
var extraInfos = ChannelStore.getExtraInfos();
|
||||
extraInfos[action.extra_info.id] = action.extra_info;
|
||||
ChannelStore.storeExtraInfos(extraInfos);
|
||||
|
||||
@@ -57,7 +57,7 @@ var ErrorStore = new ErrorStoreClass();
|
||||
ErrorStore.dispatchToken = AppDispatcher.register((payload) => {
|
||||
var action = payload.action;
|
||||
switch (action.type) {
|
||||
case ActionTypes.RECIEVED_ERROR:
|
||||
case ActionTypes.RECEIVED_ERROR:
|
||||
ErrorStore.storeLastError(action.err);
|
||||
ErrorStore.emitChange();
|
||||
break;
|
||||
|
||||
@@ -49,7 +49,7 @@ class FileStore extends EventEmitter {
|
||||
const action = payload.action;
|
||||
|
||||
switch (action.type) {
|
||||
case ActionTypes.RECIEVED_FILE_INFO:
|
||||
case ActionTypes.RECEIVED_FILE_INFO:
|
||||
this.setInfo(action.filename, action.info);
|
||||
this.emitChange(action.filename);
|
||||
break;
|
||||
|
||||
@@ -540,23 +540,23 @@ PostStore.dispatchToken = AppDispatcher.register((payload) => {
|
||||
var action = payload.action;
|
||||
|
||||
switch (action.type) {
|
||||
case ActionTypes.RECIEVED_POSTS: {
|
||||
case ActionTypes.RECEIVED_POSTS: {
|
||||
const id = PostStore.currentFocusedPostId == null ? action.id : PostStore.currentFocusedPostId;
|
||||
PostStore.checkBounds(id, action.numRequested, makePostListNonNull(action.post_list), action.before);
|
||||
PostStore.storePosts(id, makePostListNonNull(action.post_list));
|
||||
PostStore.emitChange();
|
||||
break;
|
||||
}
|
||||
case ActionTypes.RECIEVED_FOCUSED_POST:
|
||||
case ActionTypes.RECEIVED_FOCUSED_POST:
|
||||
PostStore.clearChannelVisibility(action.postId, false);
|
||||
PostStore.storeFocusedPost(action.postId, makePostListNonNull(action.post_list));
|
||||
PostStore.emitChange();
|
||||
break;
|
||||
case ActionTypes.RECIEVED_POST:
|
||||
case ActionTypes.RECEIVED_POST:
|
||||
PostStore.storePost(action.post);
|
||||
PostStore.emitChange();
|
||||
break;
|
||||
case ActionTypes.RECIEVED_EDIT_POST:
|
||||
case ActionTypes.RECEIVED_EDIT_POST:
|
||||
PostStore.emitEditPost(action);
|
||||
PostStore.emitChange();
|
||||
break;
|
||||
@@ -577,7 +577,7 @@ PostStore.dispatchToken = AppDispatcher.register((payload) => {
|
||||
PostStore.removePost(action.post);
|
||||
PostStore.emitChange();
|
||||
break;
|
||||
case ActionTypes.RECIEVED_POST_SELECTED:
|
||||
case ActionTypes.RECEIVED_POST_SELECTED:
|
||||
PostStore.storeSelectedPost(action.post_list);
|
||||
PostStore.emitSelectedPostChange(action.from_search);
|
||||
break;
|
||||
|
||||
@@ -159,13 +159,13 @@ class PreferenceStoreClass extends EventEmitter {
|
||||
const action = payload.action;
|
||||
|
||||
switch (action.type) {
|
||||
case ActionTypes.RECIEVED_PREFERENCE: {
|
||||
case ActionTypes.RECEIVED_PREFERENCE: {
|
||||
const preference = action.preference;
|
||||
this.setPreference(preference.category, preference.name, preference.value);
|
||||
this.emitChange();
|
||||
break;
|
||||
}
|
||||
case ActionTypes.RECIEVED_PREFERENCES:
|
||||
case ActionTypes.RECEIVED_PREFERENCES:
|
||||
this.setPreferences(action.preferences);
|
||||
this.emitChange();
|
||||
break;
|
||||
|
||||
@@ -119,11 +119,11 @@ SearchStore.dispatchToken = AppDispatcher.register((payload) => {
|
||||
var action = payload.action;
|
||||
|
||||
switch (action.type) {
|
||||
case ActionTypes.RECIEVED_SEARCH:
|
||||
case ActionTypes.RECEIVED_SEARCH:
|
||||
SearchStore.storeSearchResults(action.results, action.is_mention_search);
|
||||
SearchStore.emitSearchChange();
|
||||
break;
|
||||
case ActionTypes.RECIEVED_SEARCH_TERM:
|
||||
case ActionTypes.RECEIVED_SEARCH_TERM:
|
||||
SearchStore.storeSearchTerm(action.term);
|
||||
SearchStore.emitSearchTermChange(action.do_search, action.is_mention_search);
|
||||
break;
|
||||
|
||||
@@ -116,7 +116,7 @@ TeamStore.dispatchToken = AppDispatcher.register((payload) => {
|
||||
var action = payload.action;
|
||||
|
||||
switch (action.type) {
|
||||
case ActionTypes.RECIEVED_TEAM:
|
||||
case ActionTypes.RECEIVED_TEAM:
|
||||
TeamStore.saveTeam(action.team);
|
||||
TeamStore.emitChange();
|
||||
break;
|
||||
|
||||
@@ -336,27 +336,27 @@ UserStore.dispatchToken = AppDispatcher.register((payload) => {
|
||||
var action = payload.action;
|
||||
|
||||
switch (action.type) {
|
||||
case ActionTypes.RECIEVED_PROFILES:
|
||||
case ActionTypes.RECEIVED_PROFILES:
|
||||
UserStore.saveProfiles(action.profiles);
|
||||
UserStore.emitChange();
|
||||
break;
|
||||
case ActionTypes.RECIEVED_ME:
|
||||
case ActionTypes.RECEIVED_ME:
|
||||
UserStore.setCurrentUser(action.me);
|
||||
UserStore.emitChange(action.me.id);
|
||||
break;
|
||||
case ActionTypes.RECIEVED_SESSIONS:
|
||||
case ActionTypes.RECEIVED_SESSIONS:
|
||||
UserStore.setSessions(action.sessions);
|
||||
UserStore.emitSessionsChange();
|
||||
break;
|
||||
case ActionTypes.RECIEVED_AUDITS:
|
||||
case ActionTypes.RECEIVED_AUDITS:
|
||||
UserStore.setAudits(action.audits);
|
||||
UserStore.emitAuditsChange();
|
||||
break;
|
||||
case ActionTypes.RECIEVED_TEAMS:
|
||||
case ActionTypes.RECEIVED_TEAMS:
|
||||
UserStore.setTeams(action.teams);
|
||||
UserStore.emitTeamsChange();
|
||||
break;
|
||||
case ActionTypes.RECIEVED_STATUSES:
|
||||
case ActionTypes.RECEIVED_STATUSES:
|
||||
UserStore.pSetStatuses(action.statuses);
|
||||
UserStore.emitStatusesChange();
|
||||
break;
|
||||
|
||||
@@ -17,7 +17,7 @@ var callTracker = {};
|
||||
|
||||
export function dispatchError(err, method) {
|
||||
AppDispatcher.handleServerAction({
|
||||
type: ActionTypes.RECIEVED_ERROR,
|
||||
type: ActionTypes.RECEIVED_ERROR,
|
||||
err: err,
|
||||
method: method
|
||||
});
|
||||
@@ -70,7 +70,7 @@ export function getChannels(checkVersion) {
|
||||
}
|
||||
|
||||
AppDispatcher.handleServerAction({
|
||||
type: ActionTypes.RECIEVED_CHANNELS,
|
||||
type: ActionTypes.RECEIVED_CHANNELS,
|
||||
channels: data.channels,
|
||||
members: data.members
|
||||
});
|
||||
@@ -98,7 +98,7 @@ export function getChannel(id) {
|
||||
}
|
||||
|
||||
AppDispatcher.handleServerAction({
|
||||
type: ActionTypes.RECIEVED_CHANNEL,
|
||||
type: ActionTypes.RECEIVED_CHANNEL,
|
||||
channel: data.channel,
|
||||
member: data.member
|
||||
});
|
||||
@@ -155,7 +155,7 @@ export function getMoreChannels(force) {
|
||||
}
|
||||
|
||||
AppDispatcher.handleServerAction({
|
||||
type: ActionTypes.RECIEVED_MORE_CHANNELS,
|
||||
type: ActionTypes.RECEIVED_MORE_CHANNELS,
|
||||
channels: data.channels,
|
||||
members: data.members
|
||||
});
|
||||
@@ -194,7 +194,7 @@ export function getChannelExtraInfo(id, memberLimit) {
|
||||
}
|
||||
|
||||
AppDispatcher.handleServerAction({
|
||||
type: ActionTypes.RECIEVED_CHANNEL_EXTRA_INFO,
|
||||
type: ActionTypes.RECEIVED_CHANNEL_EXTRA_INFO,
|
||||
extra_info: data
|
||||
});
|
||||
},
|
||||
@@ -221,7 +221,7 @@ export function getProfiles() {
|
||||
}
|
||||
|
||||
AppDispatcher.handleServerAction({
|
||||
type: ActionTypes.RECIEVED_PROFILES,
|
||||
type: ActionTypes.RECEIVED_PROFILES,
|
||||
profiles: data
|
||||
});
|
||||
},
|
||||
@@ -248,7 +248,7 @@ export function getSessions() {
|
||||
}
|
||||
|
||||
AppDispatcher.handleServerAction({
|
||||
type: ActionTypes.RECIEVED_SESSIONS,
|
||||
type: ActionTypes.RECEIVED_SESSIONS,
|
||||
sessions: data
|
||||
});
|
||||
},
|
||||
@@ -275,7 +275,7 @@ export function getAudits() {
|
||||
}
|
||||
|
||||
AppDispatcher.handleServerAction({
|
||||
type: ActionTypes.RECIEVED_AUDITS,
|
||||
type: ActionTypes.RECEIVED_AUDITS,
|
||||
audits: data
|
||||
});
|
||||
},
|
||||
@@ -301,7 +301,7 @@ export function getLogs() {
|
||||
}
|
||||
|
||||
AppDispatcher.handleServerAction({
|
||||
type: ActionTypes.RECIEVED_LOGS,
|
||||
type: ActionTypes.RECEIVED_LOGS,
|
||||
logs: data
|
||||
});
|
||||
},
|
||||
@@ -327,7 +327,7 @@ export function getServerAudits() {
|
||||
}
|
||||
|
||||
AppDispatcher.handleServerAction({
|
||||
type: ActionTypes.RECIEVED_SERVER_AUDITS,
|
||||
type: ActionTypes.RECEIVED_SERVER_AUDITS,
|
||||
audits: data
|
||||
});
|
||||
},
|
||||
@@ -353,7 +353,7 @@ export function getConfig() {
|
||||
}
|
||||
|
||||
AppDispatcher.handleServerAction({
|
||||
type: ActionTypes.RECIEVED_CONFIG,
|
||||
type: ActionTypes.RECEIVED_CONFIG,
|
||||
config: data
|
||||
});
|
||||
},
|
||||
@@ -379,7 +379,7 @@ export function getAllTeams() {
|
||||
}
|
||||
|
||||
AppDispatcher.handleServerAction({
|
||||
type: ActionTypes.RECIEVED_ALL_TEAMS,
|
||||
type: ActionTypes.RECEIVED_ALL_TEAMS,
|
||||
teams: data
|
||||
});
|
||||
},
|
||||
@@ -408,7 +408,7 @@ export function findTeams(email) {
|
||||
}
|
||||
|
||||
AppDispatcher.handleServerAction({
|
||||
type: ActionTypes.RECIEVED_TEAMS,
|
||||
type: ActionTypes.RECEIVED_TEAMS,
|
||||
teams: data
|
||||
});
|
||||
},
|
||||
@@ -436,7 +436,7 @@ export function search(terms) {
|
||||
}
|
||||
|
||||
AppDispatcher.handleServerAction({
|
||||
type: ActionTypes.RECIEVED_SEARCH,
|
||||
type: ActionTypes.RECEIVED_SEARCH,
|
||||
results: data
|
||||
});
|
||||
},
|
||||
@@ -488,7 +488,7 @@ export function getPostsPage(id, maxPosts) {
|
||||
}
|
||||
|
||||
AppDispatcher.handleServerAction({
|
||||
type: ActionTypes.RECIEVED_POSTS,
|
||||
type: ActionTypes.RECEIVED_POSTS,
|
||||
id: channelId,
|
||||
before: true,
|
||||
numRequested: numPosts,
|
||||
@@ -538,7 +538,7 @@ export function getPosts(id) {
|
||||
}
|
||||
|
||||
AppDispatcher.handleServerAction({
|
||||
type: ActionTypes.RECIEVED_POSTS,
|
||||
type: ActionTypes.RECEIVED_POSTS,
|
||||
id: channelId,
|
||||
before: true,
|
||||
numRequested: Constants.POST_CHUNK_SIZE,
|
||||
@@ -577,7 +577,7 @@ export function getPostsBefore(postId, offset, numPost) {
|
||||
}
|
||||
|
||||
AppDispatcher.handleServerAction({
|
||||
type: ActionTypes.RECIEVED_POSTS,
|
||||
type: ActionTypes.RECEIVED_POSTS,
|
||||
id: channelId,
|
||||
before: true,
|
||||
numRequested: numPost,
|
||||
@@ -616,7 +616,7 @@ export function getPostsAfter(postId, offset, numPost) {
|
||||
}
|
||||
|
||||
AppDispatcher.handleServerAction({
|
||||
type: ActionTypes.RECIEVED_POSTS,
|
||||
type: ActionTypes.RECEIVED_POSTS,
|
||||
id: channelId,
|
||||
before: false,
|
||||
numRequested: numPost,
|
||||
@@ -649,7 +649,7 @@ export function getMe() {
|
||||
}
|
||||
|
||||
AppDispatcher.handleServerAction({
|
||||
type: ActionTypes.RECIEVED_ME,
|
||||
type: ActionTypes.RECEIVED_ME,
|
||||
me: data
|
||||
});
|
||||
},
|
||||
@@ -685,7 +685,7 @@ export function getStatuses() {
|
||||
}
|
||||
|
||||
AppDispatcher.handleServerAction({
|
||||
type: ActionTypes.RECIEVED_STATUSES,
|
||||
type: ActionTypes.RECEIVED_STATUSES,
|
||||
statuses: data
|
||||
});
|
||||
},
|
||||
@@ -711,7 +711,7 @@ export function getMyTeam() {
|
||||
}
|
||||
|
||||
AppDispatcher.handleServerAction({
|
||||
type: ActionTypes.RECIEVED_TEAM,
|
||||
type: ActionTypes.RECEIVED_TEAM,
|
||||
team: data
|
||||
});
|
||||
},
|
||||
@@ -737,7 +737,7 @@ export function getAllPreferences() {
|
||||
}
|
||||
|
||||
AppDispatcher.handleServerAction({
|
||||
type: ActionTypes.RECIEVED_PREFERENCES,
|
||||
type: ActionTypes.RECEIVED_PREFERENCES,
|
||||
preferences: data
|
||||
});
|
||||
},
|
||||
@@ -754,7 +754,7 @@ export function savePreferences(preferences, success, error) {
|
||||
(data, textStatus, xhr) => {
|
||||
if (xhr.status !== 304) {
|
||||
AppDispatcher.handleServerAction({
|
||||
type: ActionTypes.RECIEVED_PREFERENCES,
|
||||
type: ActionTypes.RECEIVED_PREFERENCES,
|
||||
preferences
|
||||
});
|
||||
}
|
||||
@@ -821,7 +821,7 @@ export function getFileInfo(filename) {
|
||||
callTracker[callName] = 0;
|
||||
|
||||
AppDispatcher.handleServerAction({
|
||||
type: ActionTypes.RECIEVED_FILE_INFO,
|
||||
type: ActionTypes.RECEIVED_FILE_INFO,
|
||||
filename,
|
||||
info: data
|
||||
});
|
||||
|
||||
@@ -5,7 +5,7 @@ import keyMirror from 'keymirror';
|
||||
|
||||
export default {
|
||||
ActionTypes: keyMirror({
|
||||
RECIEVED_ERROR: null,
|
||||
RECEIVED_ERROR: null,
|
||||
|
||||
CLICK_CHANNEL: null,
|
||||
CREATE_CHANNEL: null,
|
||||
@@ -14,40 +14,40 @@ export default {
|
||||
POST_DELETED: null,
|
||||
REMOVE_POST: null,
|
||||
|
||||
RECIEVED_CHANNELS: null,
|
||||
RECIEVED_CHANNEL: null,
|
||||
RECIEVED_MORE_CHANNELS: null,
|
||||
RECIEVED_CHANNEL_EXTRA_INFO: null,
|
||||
RECEIVED_CHANNELS: null,
|
||||
RECEIVED_CHANNEL: null,
|
||||
RECEIVED_MORE_CHANNELS: null,
|
||||
RECEIVED_CHANNEL_EXTRA_INFO: null,
|
||||
|
||||
FOCUS_POST: null,
|
||||
RECIEVED_POSTS: null,
|
||||
RECIEVED_FOCUSED_POST: null,
|
||||
RECIEVED_POST: null,
|
||||
RECIEVED_EDIT_POST: null,
|
||||
RECIEVED_SEARCH: null,
|
||||
RECIEVED_SEARCH_TERM: null,
|
||||
RECIEVED_POST_SELECTED: null,
|
||||
RECIEVED_MENTION_DATA: null,
|
||||
RECIEVED_ADD_MENTION: null,
|
||||
RECEIVED_POSTS: null,
|
||||
RECEIVED_FOCUSED_POST: null,
|
||||
RECEIVED_POST: null,
|
||||
RECEIVED_EDIT_POST: null,
|
||||
RECEIVED_SEARCH: null,
|
||||
RECEIVED_SEARCH_TERM: null,
|
||||
RECEIVED_POST_SELECTED: null,
|
||||
RECEIVED_MENTION_DATA: null,
|
||||
RECEIVED_ADD_MENTION: null,
|
||||
|
||||
RECIEVED_PROFILES: null,
|
||||
RECIEVED_ME: null,
|
||||
RECIEVED_SESSIONS: null,
|
||||
RECIEVED_AUDITS: null,
|
||||
RECIEVED_TEAMS: null,
|
||||
RECIEVED_STATUSES: null,
|
||||
RECIEVED_PREFERENCE: null,
|
||||
RECIEVED_PREFERENCES: null,
|
||||
RECIEVED_FILE_INFO: null,
|
||||
RECEIVED_PROFILES: null,
|
||||
RECEIVED_ME: null,
|
||||
RECEIVED_SESSIONS: null,
|
||||
RECEIVED_AUDITS: null,
|
||||
RECEIVED_TEAMS: null,
|
||||
RECEIVED_STATUSES: null,
|
||||
RECEIVED_PREFERENCE: null,
|
||||
RECEIVED_PREFERENCES: null,
|
||||
RECEIVED_FILE_INFO: null,
|
||||
|
||||
RECIEVED_MSG: null,
|
||||
RECEIVED_MSG: null,
|
||||
|
||||
RECIEVED_TEAM: null,
|
||||
RECEIVED_TEAM: null,
|
||||
|
||||
RECIEVED_CONFIG: null,
|
||||
RECIEVED_LOGS: null,
|
||||
RECIEVED_SERVER_AUDITS: null,
|
||||
RECIEVED_ALL_TEAMS: null,
|
||||
RECEIVED_CONFIG: null,
|
||||
RECEIVED_LOGS: null,
|
||||
RECEIVED_SERVER_AUDITS: null,
|
||||
RECEIVED_ALL_TEAMS: null,
|
||||
|
||||
SHOW_SEARCH: null,
|
||||
|
||||
|
||||
@@ -490,7 +490,7 @@ export function insertHtmlEntities(text) {
|
||||
|
||||
export function searchForTerm(term) {
|
||||
AppDispatcher.handleServerAction({
|
||||
type: ActionTypes.RECIEVED_SEARCH_TERM,
|
||||
type: ActionTypes.RECEIVED_SEARCH_TERM,
|
||||
term: term,
|
||||
do_search: true
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user