summaryrefslogtreecommitdiffstats
path: root/webapp/components/profile_popover.jsx
diff options
context:
space:
mode:
authorkhawerrind <khawer.zeshan@gmail.com>2017-01-12 20:52:19 +0500
committerHarrison Healey <harrisonmhealey@gmail.com>2017-01-12 10:52:19 -0500
commit45d18b364b7633fd52a53c713d9a2a3f06749273 (patch)
treef067af2c12b8e0ec25c5ae68e5cde48a343e3494 /webapp/components/profile_popover.jsx
parent739f32272ff4079b5638d6293a28ed8ffbbb926e (diff)
downloadchat-45d18b364b7633fd52a53c713d9a2a3f06749273.tar.gz
chat-45d18b364b7633fd52a53c713d9a2a3f06749273.tar.bz2
chat-45d18b364b7633fd52a53c713d9a2a3f06749273.zip
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
Diffstat (limited to 'webapp/components/profile_popover.jsx')
-rw-r--r--webapp/components/profile_popover.jsx3
1 files changed, 3 insertions, 0 deletions
diff --git a/webapp/components/profile_popover.jsx b/webapp/components/profile_popover.jsx
index d7d9929ee..22cf60004 100644
--- a/webapp/components/profile_popover.jsx
+++ b/webapp/components/profile_popover.jsx
@@ -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();