Fix create post when channel is group message (#407)

This commit is contained in:
enahum 2017-03-27 17:01:14 -03:00 committed by GitHub
parent e6a1c1a433
commit fbe753be67

View file

@ -123,7 +123,7 @@ export default class Channel extends React.PureComponent {
}
let teamId = currentChannel.team_id;
if (currentChannel.type === Constants.DM_CHANNEL) {
if (currentChannel.type === Constants.DM_CHANNEL || currentChannel.type === Constants.GM_CHANNEL) {
teamId = currentTeam.id;
}