From 67f803bc5f7ac78b526dfe7fb1f4bdcc7553cf86 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Tue, 26 Jun 2018 16:59:49 +0100 Subject: [PATCH] don't fire share dialog when clicking timestamp of event, it was tripping people up and broke search permalinks Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/components/views/rooms/EventTile.js | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/src/components/views/rooms/EventTile.js b/src/components/views/rooms/EventTile.js index aa2f28024e..bae3ac8fa7 100644 --- a/src/components/views/rooms/EventTile.js +++ b/src/components/views/rooms/EventTile.js @@ -439,17 +439,6 @@ module.exports = withMatrixClient(React.createClass({ }); }, - onPermalinkShareClicked: function(e) { - // These permalinks are like above, can be opened in new tab/window to matrix.to - // but otherwise fire the ShareDialog as it makes little sense to click permalink - // whilst it is in the current room - e.preventDefault(); - const ShareDialog = sdk.getComponent("dialogs.ShareDialog"); - Modal.createTrackedDialog('share room event dialog', '', ShareDialog, { - target: this.props.mxEvent, - }); - }, - _renderE2EPadlock: function() { const ev = this.props.mxEvent; const props = {onClick: this.onCryptoClicked}; @@ -680,7 +669,7 @@ module.exports = withMatrixClient(React.createClass({ { avatar } { sender }
- + { timestamp } { this._renderE2EPadlock() } @@ -707,7 +696,7 @@ module.exports = withMatrixClient(React.createClass({ { avatar } { sender }
- + { timestamp } { this._renderE2EPadlock() }