mattermost-mobile-upstream/app/constants/versions.ts
2026-08-07 17:30:50 +02:00

25 lines
1.2 KiB
TypeScript

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
export const GM_AS_DM_VERSION = [9, 1, 0];
// Server version where a promoted feature flag is removed from the client config (MM-69218). Mobile
// treats the feature as always-on at or after this version, and honors the flag on older servers that
// still send it (see @queries/servers/features). One constant per flag so the pattern is easy to copy;
// each must track its own server-side removal release, and the compat shim can be deleted once
// MIN_REQUIRED_VERSION reaches it (guarded by a test in features.test.ts).
export const CHANNEL_BOOKMARKS_FLAG_REMOVED_VERSION = [11, 10, 0];
export const CUSTOM_PROFILE_ATTRIBUTES_FLAG_REMOVED_VERSION = [11, 10, 0];
// Server version where POST /api/v4/actions/blocks/do (doBlockAction) and mm_blocks form
// input blocks (text_input, select, bool_input, date/datetime/file_input) are available.
// Below this, post actions fall back to doPostActionWithCookie and form inputs are ignored.
export const BLOCK_ACTIONS_VERSION = [11, 11, 0];
export const OS_VERSION = {
ANDROID: 'android',
IOS: 'ios',
};
export const ANDROID_33 = 33;