Tweak handler name to match others
This commit is contained in:
parent
8926992feb
commit
91f707341a
2 changed files with 4 additions and 4 deletions
|
@ -57,7 +57,7 @@ export default class MessageActionBar extends React.PureComponent {
|
||||||
this.props.onFocusChange(focused);
|
this.props.onFocusChange(focused);
|
||||||
}
|
}
|
||||||
|
|
||||||
onCryptoClicked = () => {
|
onCryptoClick = () => {
|
||||||
const event = this.props.mxEvent;
|
const event = this.props.mxEvent;
|
||||||
Modal.createTrackedDialogAsync('Encrypted Event Dialog', '',
|
Modal.createTrackedDialogAsync('Encrypted Event Dialog', '',
|
||||||
import('../../../async-components/views/dialogs/EncryptedEventDialog'),
|
import('../../../async-components/views/dialogs/EncryptedEventDialog'),
|
||||||
|
@ -89,7 +89,7 @@ export default class MessageActionBar extends React.PureComponent {
|
||||||
|
|
||||||
let e2eInfoCallback = null;
|
let e2eInfoCallback = null;
|
||||||
if (this.props.mxEvent.isEncrypted()) {
|
if (this.props.mxEvent.isEncrypted()) {
|
||||||
e2eInfoCallback = () => this.onCryptoClicked();
|
e2eInfoCallback = () => this.onCryptoClick();
|
||||||
}
|
}
|
||||||
|
|
||||||
const menuOptions = {
|
const menuOptions = {
|
||||||
|
|
|
@ -404,7 +404,7 @@ module.exports = withMatrixClient(React.createClass({
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
onCryptoClicked: function(e) {
|
onCryptoClick: function(e) {
|
||||||
const event = this.props.mxEvent;
|
const event = this.props.mxEvent;
|
||||||
|
|
||||||
Modal.createTrackedDialogAsync('Encrypted Event Dialog', '',
|
Modal.createTrackedDialogAsync('Encrypted Event Dialog', '',
|
||||||
|
@ -440,7 +440,7 @@ module.exports = withMatrixClient(React.createClass({
|
||||||
|
|
||||||
_renderE2EPadlock: function() {
|
_renderE2EPadlock: function() {
|
||||||
const ev = this.props.mxEvent;
|
const ev = this.props.mxEvent;
|
||||||
const props = {onClick: this.onCryptoClicked};
|
const props = {onClick: this.onCryptoClick};
|
||||||
|
|
||||||
// event could not be decrypted
|
// event could not be decrypted
|
||||||
if (ev.getContent().msgtype === 'm.bad.encrypted') {
|
if (ev.getContent().msgtype === 'm.bad.encrypted') {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue