Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Tweak handler name to match others
Browse files Browse the repository at this point in the history
  • Loading branch information
jryans committed Jun 25, 2019
1 parent 8926992 commit 91f7073
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/views/messages/MessageActionBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export default class MessageActionBar extends React.PureComponent {
this.props.onFocusChange(focused);
}

onCryptoClicked = () => {
onCryptoClick = () => {
const event = this.props.mxEvent;
Modal.createTrackedDialogAsync('Encrypted Event Dialog', '',
import('../../../async-components/views/dialogs/EncryptedEventDialog'),
Expand Down Expand Up @@ -89,7 +89,7 @@ export default class MessageActionBar extends React.PureComponent {

let e2eInfoCallback = null;
if (this.props.mxEvent.isEncrypted()) {
e2eInfoCallback = () => this.onCryptoClicked();
e2eInfoCallback = () => this.onCryptoClick();
}

const menuOptions = {
Expand Down
4 changes: 2 additions & 2 deletions src/components/views/rooms/EventTile.js
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ module.exports = withMatrixClient(React.createClass({
});
},

onCryptoClicked: function(e) {
onCryptoClick: function(e) {
const event = this.props.mxEvent;

Modal.createTrackedDialogAsync('Encrypted Event Dialog', '',
Expand Down Expand Up @@ -440,7 +440,7 @@ module.exports = withMatrixClient(React.createClass({

_renderE2EPadlock: function() {
const ev = this.props.mxEvent;
const props = {onClick: this.onCryptoClicked};
const props = {onClick: this.onCryptoClick};

// event could not be decrypted
if (ev.getContent().msgtype === 'm.bad.encrypted') {
Expand Down

0 comments on commit 91f7073

Please sign in to comment.