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

Commit

Permalink
fix: supress audio empty warning
Browse files Browse the repository at this point in the history
  • Loading branch information
clement2026 committed Dec 13, 2023
1 parent 0a2cf37 commit eedcd7c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/home/chat-window/compnent/audio.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ export const Audio: React.FC<AudioProps> = ({
const url = URL.createObjectURL(blob)
setUrl(url)
} else {
console.error("audio blob is empty, audioId:", audioSnap.id)
// audio is expected to be empty after restoring from an uploaded json file
// console.error("audio blob is empty, audioId:", audioSnap.id)
}
}).then(() => true)
}
Expand Down
3 changes: 2 additions & 1 deletion src/home/chat-window/message-list/menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ export const AudioMenu: React.FC<AudioMenuProps> = ({deleteAction, audioId}) =>
const url = URL.createObjectURL(blob)
setUrl(url)
} else {
console.error("audio blob is empty, audioId:", audioId)
// audio is expected to be empty after restoring from an uploaded json file
// console.error("audio blob is empty, audioId:", audioId)
}
}
).then(() => true)
Expand Down

0 comments on commit eedcd7c

Please sign in to comment.