putting it all together
This commit is contained in:
@@ -45,7 +45,7 @@ class SendMessage extends React.PureComponent {
|
||||
quote: null,
|
||||
message: '',
|
||||
audioRec: false,
|
||||
audioEnabled: !!navigator.mediaDevices.getUserMedia,
|
||||
audioEnabled: !!navigator.mediaDevices.getUserMedia && this.props.onAttachAudio,
|
||||
// Make initial keypress time as if it happened 5001 milliseconds in the past.
|
||||
keypressTimestamp: new Date().getTime() - KEYPRESS_DELAY - 1
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user