Invalidate versions for iOS (#4349)

This commit is contained in:
Elias Nahum 2020-05-27 10:49:33 -04:00 committed by GitHub
parent 43f1e5113c
commit 547ac860b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,7 +1,7 @@
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import {Alert} from 'react-native';
import {Alert, Platform} from 'react-native';
import ReactNativeHapticFeedback from 'react-native-haptic-feedback';
import {Posts} from '@mm-redux/constants';
@ -86,6 +86,10 @@ export function isPendingPost(postId, userId) {
}
export function validatePreviousVersion(previousVersion) {
if (Platform.OS === 'ios') {
INVALID_VERSIONS.push('1.31.0', '1.31.1');
}
if (!previousVersion || INVALID_VERSIONS.includes(previousVersion)) {
return false;
}