Skip to content

Commit 14305d0

Browse files
authored
Merge pull request #10 from vcon-dev/version-bump-df82e
Version bump df82e
2 parents 9a3c427 + a50af19 commit 14305d0

2 files changed

Lines changed: 4 additions & 7 deletions

File tree

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/utils/media-storage.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,8 @@ export interface MediaProcessingOptions {
7878
* Check if a dialog contains embedded media that should be externalized
7979
*/
8080
export function hasEmbeddedMedia(dialog: Dialog): boolean {
81-
// Must have body and base64/base64url encoding
82-
if (
83-
!dialog.body ||
84-
(dialog.encoding !== 'base64' && dialog.encoding !== 'base64url')
85-
) {
81+
// Must have body and base64url encoding (per IETF vCon spec)
82+
if (!dialog.body || dialog.encoding !== 'base64url') {
8683
return false;
8784
}
8885

0 commit comments

Comments
 (0)