PLT-5174 Mobile view: Send message link in popover doesn't close RHS (#5017)

* Fixed send message link in popover doesn't close RHS

* added isMobile check for closing the rhs when click on send message button from profile popover
Этот коммит содержится в:
khawerrind
2017-01-12 20:52:19 +05:00
коммит произвёл Harrison Healey
родитель 739f32272f
Коммит 45d18b364b

Просмотреть файл

@@ -83,6 +83,9 @@ export default class ProfilePopover extends React.Component {
openDirectChannelToUser(
user,
(channel) => {
if (Utils.isMobile()) {
GlobalActions.emitCloseRightHandSide();
}
this.setState({loadingDMChannel: -1});
if (this.props.hide) {
this.props.hide();