You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-11 20:22:36 +03:00
Rename function
This commit is contained in:
@@ -40,7 +40,7 @@ export default class VoiceRecordComposerTile extends React.PureComponent<IProps,
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
private onStartVoiceMessage = async () => {
|
private onStartStopVoiceMessage = async () => {
|
||||||
// TODO: @@ TravisR: We do not want to auto-send on stop.
|
// TODO: @@ TravisR: We do not want to auto-send on stop.
|
||||||
if (this.state.recorder) {
|
if (this.state.recorder) {
|
||||||
await this.state.recorder.stop();
|
await this.state.recorder.stop();
|
||||||
@@ -80,7 +80,7 @@ export default class VoiceRecordComposerTile extends React.PureComponent<IProps,
|
|||||||
return (
|
return (
|
||||||
<AccessibleTooltipButton
|
<AccessibleTooltipButton
|
||||||
className={classes}
|
className={classes}
|
||||||
onClick={this.onStartVoiceMessage}
|
onClick={this.onStartStopVoiceMessage}
|
||||||
title={tooltip}
|
title={tooltip}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user