create room instantly

This commit is contained in:
Arjun Patel
2022-01-21 22:38:32 -08:00
parent b27a5607d2
commit a897c7a9b4
3 changed files with 106 additions and 58 deletions
-5
View File
@@ -337,9 +337,6 @@ export default function KeyboardContextProvider({ children }) {
const handleKeyUp = useCallback(
(event) => {
console.log("on key up");
console.log(event.keyCode);
// if was recording and released R, then stop recording and send message
if (event.keyCode == KeyCode.R && selectedTeammate && isRecording) {
console.log("stopped recording");
@@ -394,8 +391,6 @@ export default function KeyboardContextProvider({ children }) {
return;
}
console.log(event.keyCode);
// recording
if (event.keyCode == KeyCode.R && !ctrlDown) {
if (!audioInputDeviceId) {