summaryrefslogtreecommitdiffstats
path: root/webapp/actions
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2017-05-02 09:28:44 -0400
committerHarrison Healey <harrisonmhealey@gmail.com>2017-05-02 09:28:44 -0400
commit042052aec61b8c51751cb3aeb27c6c21ecf16416 (patch)
treecedfee7c1ddecacdddc155a453f33b717b233490 /webapp/actions
parent294bd0825550cd8de557a8b36facfc601f32bd82 (diff)
downloadchat-042052aec61b8c51751cb3aeb27c6c21ecf16416.tar.gz
chat-042052aec61b8c51751cb3aeb27c6c21ecf16416.tar.bz2
chat-042052aec61b8c51751cb3aeb27c6c21ecf16416.zip
Improve perf for channel switching, fix team switching issues (#6286)
* Improve perf for channel switching, fix team switching issues * Fix last channel when switching teams
Diffstat (limited to 'webapp/actions')
-rw-r--r--webapp/actions/post_actions.jsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/webapp/actions/post_actions.jsx b/webapp/actions/post_actions.jsx
index 4b7ade862..3174fe681 100644
--- a/webapp/actions/post_actions.jsx
+++ b/webapp/actions/post_actions.jsx
@@ -25,7 +25,7 @@ import store from 'stores/redux_store.jsx';
const dispatch = store.dispatch;
const getState = store.getState;
import {getProfilesByIds} from 'mattermost-redux/actions/users';
-import {getChannelMember} from 'mattermost-redux/actions/channels';
+import {getMyChannelMember} from 'mattermost-redux/actions/channels';
export function handleNewPost(post, msg) {
let websocketMessageProps = {};
@@ -41,7 +41,7 @@ export function handleNewPost(post, msg) {
Client.setTeamId(msg.data.team_id);
}
- getChannelMember(post.channel_id, UserStore.getCurrentId())(dispatch, getState).then(() => completePostReceive(post, websocketMessageProps));
+ getMyChannelMember(post.channel_id)(dispatch, getState).then(() => completePostReceive(post, websocketMessageProps));
}
if (msg && msg.data) {