Skip to content

Conversation

@marcoambrosini
Copy link
Member

preview

Signed-off-by: Marco Ambrosini [email protected]

let localUrl = ''
if (file.type === 'image/png' || file.type === 'image/gif' || file.type === 'image/jpeg') {
localUrl = URL.createObjectURL(file)
} else if (isVoiceMessage) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add this arg to the JSDoc and extend the unit test fileUploadStore.spec.js ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@PVince81 I'll create an issue for the tests and I'll look into it once I have finished all the urgent tasks

Copy link
Member

@nickvergessen nickvergessen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works,but see request from vincent

@marcoambrosini marcoambrosini merged commit 09ad452 into master Jun 17, 2021
@marcoambrosini marcoambrosini deleted the feature/noid/preview-voice-messages-before-uploading branch June 17, 2021 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants