Skip to content

Conversation

adamski
Copy link
Contributor

@adamski adamski commented Nov 8, 2017

Added a few common audio file types: mp3, wav, aiff, ogg and flac.

mimeType = @"application/zip";
} else if ([attachmentType isEqualToString:@"text"]) {
mimeType = @"text/*";
} else if ([attachmentType isEqualToString:@"mp3"]) {
Copy link
Owner

Choose a reason for hiding this comment

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

at this point, it might be worth using a switch statement here. @adamski you wanna tackle that now?

i'm ok with shipping this as is too.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Objective-C (like C) only supports integer values for switch statements, so not possible I'm afraid, although there are some workarounds that can look similar. I think its simpler to leave it as is.

@chirag04 chirag04 merged commit ef9a366 into chirag04:master Nov 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants