about summary refs log tree commit diff
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2019-06-10 19:27:10 +0200
committerEugen Rochko <eugen@zeonfederated.com>2019-06-10 19:27:10 +0200
commit5bcd98172c2d0ec4827e396a3648eb1e94634c55 (patch)
tree6ffc2a9ea0db9a0c76afa69206afd456037abf50
parent62852252dd76c6cc559d1cfb3b276c84791b074e (diff)
Fix clicking on the left side of a conversation not marking it as read (#11041)
-rw-r--r--app/javascript/mastodon/components/status.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/javascript/mastodon/components/status.js b/app/javascript/mastodon/components/status.js
index a795b8ce9..aa5e870dc 100644
--- a/app/javascript/mastodon/components/status.js
+++ b/app/javascript/mastodon/components/status.js
@@ -171,6 +171,11 @@ class Status extends ImmutablePureComponent {
   }
 
   handleExpandClick = (e) => {
+    if (this.props.onClick) {
+      this.props.onClick();
+      return;
+    }
+
     if (e.button === 0) {
       if (!this.context.router) {
         return;