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
Этот коммит содержится в:
коммит произвёл
Harrison Healey
родитель
739f32272f
Коммит
45d18b364b
@@ -83,6 +83,9 @@ export default class ProfilePopover extends React.Component {
|
|||||||
openDirectChannelToUser(
|
openDirectChannelToUser(
|
||||||
user,
|
user,
|
||||||
(channel) => {
|
(channel) => {
|
||||||
|
if (Utils.isMobile()) {
|
||||||
|
GlobalActions.emitCloseRightHandSide();
|
||||||
|
}
|
||||||
this.setState({loadingDMChannel: -1});
|
this.setState({loadingDMChannel: -1});
|
||||||
if (this.props.hide) {
|
if (this.props.hide) {
|
||||||
this.props.hide();
|
this.props.hide();
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user