forked from Ivasoft/mattermost-mobile
* Fix Search users in Create Direct Message * Fix UserListRow style for onPress * Prevent create direct message & browse channels from being dismissed with a swipe * Only display Edit header option when tapping in the channel intro * Fix localization for ThreadFollowButton * Prevent New channel screen from being dismiss with a swipe
40 lines
1.3 KiB
TypeScript
40 lines
1.3 KiB
TypeScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
export default {
|
|
PAGE_SIZE_DEFAULT: 60,
|
|
POST_CHUNK_SIZE: 60,
|
|
POST_AROUND_CHUNK_SIZE: 10,
|
|
CHANNELS_CHUNK_SIZE: 50,
|
|
CRT_CHUNK_SIZE: 60,
|
|
STATUS_INTERVAL: 60000,
|
|
AUTOCOMPLETE_LIMIT_DEFAULT: 25,
|
|
MENTION: 'mention',
|
|
OUT_OF_OFFICE: 'ooo',
|
|
OFFLINE: 'offline',
|
|
AWAY: 'away',
|
|
ONLINE: 'online',
|
|
DND: 'dnd',
|
|
STATUS_COMMANDS: ['offline', 'away', 'online', 'dnd'],
|
|
DEFAULT_CHANNEL: 'town-square',
|
|
DM_CHANNEL: 'D' as const,
|
|
OPEN_CHANNEL: 'O' as const,
|
|
PRIVATE_CHANNEL: 'P' as const,
|
|
GM_CHANNEL: 'G' as const,
|
|
TEAMMATE_NAME_DISPLAY: {
|
|
SHOW_USERNAME: 'username',
|
|
SHOW_NICKNAME_FULLNAME: 'nickname_full_name',
|
|
SHOW_FULLNAME: 'full_name',
|
|
},
|
|
SPECIAL_MENTIONS: new Set(['all', 'channel', 'here']),
|
|
MAX_USERS_IN_GM: 8,
|
|
MIN_USERS_IN_GM: 3,
|
|
MAX_GROUP_CHANNELS_FOR_PROFILES: 50,
|
|
DEFAULT_AUTOLINKED_URL_SCHEMES: ['http', 'https', 'ftp', 'mailto', 'tel', 'mattermost'],
|
|
PROFILE_CHUNK_SIZE: 100,
|
|
SEARCH_TIMEOUT_MILLISECONDS: 500,
|
|
AUTOCOMPLETE_SPLIT_CHARACTERS: ['.', '-', '_'],
|
|
CHANNEL_USER_ROLE: 'channel_user',
|
|
RESTRICT_DIRECT_MESSAGE_ANY: 'any',
|
|
};
|