]> cat aescling's git repositories - mastodon.git/commitdiff
Fix clicking on the left side of a conversation not marking it as read (#11041)
authorThibG <thib@sitedethib.com>
Mon, 10 Jun 2019 17:27:10 +0000 (19:27 +0200)
committerEugen Rochko <eugen@zeonfederated.com>
Mon, 10 Jun 2019 17:27:10 +0000 (19:27 +0200)
app/javascript/mastodon/components/status.js

index a795b8ce9e5f418bd669614293376d3831a55895..aa5e870dc873ccbe33bcbb767e061deec86b2030 100644 (file)
@@ -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;