From 680ead2f57f65df92e5c7ace4f5fedb0cbff9138 Mon Sep 17 00:00:00 2001 From: Mattermost Build Date: Wed, 27 May 2020 18:44:07 +0200 Subject: [PATCH] Invalidate versions for iOS (#4355) Co-authored-by: Elias Nahum --- app/utils/general.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/utils/general.js b/app/utils/general.js index 76070c21d..1647f8331 100644 --- a/app/utils/general.js +++ b/app/utils/general.js @@ -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; }