Skip to content

Commit

Permalink
Merge branch 'fix/follow-change-teamid' into 'master'
Browse files Browse the repository at this point in the history
fix team id in follow changed ws event cb

See merge request kchat/webapp!547
  • Loading branch information
antonbuks committed Oct 9, 2023
2 parents cb34961 + 06ffd51 commit 697c755
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions actions/websocket_actions.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -1817,9 +1817,9 @@ function handleThreadFollowChanged(msg) {
const state = doGetState();
const thread = getThread(state, msg.data.thread_id);
if (!thread && msg.data.state && msg.data.reply_count) {
await doDispatch(fetchThread(getCurrentUserId(state), getCurrentTeamId(state), msg.data.thread_id, true));
await doDispatch(fetchThread(getCurrentUserId(state), msg.data.team_id, msg.data.thread_id, true));
}
handleFollowChanged(doDispatch, msg.data.thread_id, msg.team_id, msg.data.state);
handleFollowChanged(doDispatch, msg.data.thread_id, msg.data.team_id, msg.data.state);
};
}

Expand Down

0 comments on commit 697c755

Please sign in to comment.