getMediaUploadStatus function
Determines the media upload status for a given status code.
Implementation
int getMediaUploadStatus(int mediaUploadStatus) {
if (Platform.isIOS) {
return mediaUploadStatus == 3
? 7
: mediaUploadStatus == 8
? 0
: mediaUploadStatus;
} else {
return mediaUploadStatus;
}
}