getMediaDownloadStatus function
Determines the media download status for a given status code.
Returns an integer representing the unified download status code.
Implementation
int getMediaDownloadStatus(int mediaDownloadStatus) {
if (Platform.isIOS) {
return mediaDownloadStatus == 4
? 5
: mediaDownloadStatus == 5
? 3
: mediaDownloadStatus == 6
? 4
: mediaDownloadStatus == 7
? 6
: mediaDownloadStatus == 9
? 401
: mediaDownloadStatus;
} else {
return mediaDownloadStatus;
}
}