Files
mattermost-mobile/app/constants/post.ts
Christopher Poile 5bb240dec8 MM-43300: Calls v2 first cut (#6475)
* Android and iOS requirements

* external types

* babel config for calls, package.json for calls dependencies

* state in rxJS; tests

* actions, client/rest, websocket events, constants

* webrtc connection logic

* calls components / screens

* handle peer destroyed gracefully

* PR comments

* remove ViewPropTypes from mocks; no need to ignore error in LogBox

* calls.d.ts -> calls.ts; i18-extract

* @app/products/calls -> @calls

* PR comments; test cleanup

* Revert "remove ViewPropTypes from mocks; no need to ignore error in LogBox"

This reverts commit f9bd171a54.

* working on typing withServerUrl

* added exportedForInternalUse instead of commenting "internal export"

* better switchToThread in call_screen

* i18n

* typed withServerUrl
2022-07-22 15:57:12 -04:00

67 lines
2.1 KiB
TypeScript

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
export const PostTypes: Record<string, string> = {
CHANNEL_DELETED: 'system_channel_deleted',
CHANNEL_UNARCHIVED: 'system_channel_restored',
DISPLAYNAME_CHANGE: 'system_displayname_change',
CONVERT_CHANNEL: 'system_convert_channel',
EPHEMERAL: 'system_ephemeral',
EPHEMERAL_ADD_TO_CHANNEL: 'system_ephemeral_add_to_channel',
HEADER_CHANGE: 'system_header_change',
PURPOSE_CHANGE: 'system_purpose_change',
SYSTEM_MESSAGE_PREFIX: 'system_',
JOIN_LEAVE: 'system_join_leave',
JOIN_CHANNEL: 'system_join_channel',
GUEST_JOIN_CHANNEL: 'system_guest_join_channel',
LEAVE_CHANNEL: 'system_leave_channel',
ADD_REMOVE: 'system_add_remove',
ADD_TO_CHANNEL: 'system_add_to_channel',
ADD_GUEST_TO_CHANNEL: 'system_add_guest_to_chan',
REMOVE_FROM_CHANNEL: 'system_remove_from_channel',
JOIN_TEAM: 'system_join_team',
LEAVE_TEAM: 'system_leave_team',
ADD_TO_TEAM: 'system_add_to_team',
REMOVE_FROM_TEAM: 'system_remove_from_team',
COMBINED_USER_ACTIVITY: 'system_combined_user_activity',
ME: 'me',
ADD_BOT_TEAMS_CHANNELS: 'add_bot_teams_channels',
SYSTEM_AUTO_RESPONDER: 'system_auto_responder',
CUSTOM_CALLS: 'custom_calls',
};
export const POST_TIME_TO_FAIL = 10000;
export default {
POST_COLLAPSE_TIMEOUT: 1000 * 60 * 5,
POST_TYPES: PostTypes,
USER_ACTIVITY_POST_TYPES: [
PostTypes.ADD_TO_CHANNEL,
PostTypes.JOIN_CHANNEL,
PostTypes.LEAVE_CHANNEL,
PostTypes.REMOVE_FROM_CHANNEL,
PostTypes.ADD_TO_TEAM,
PostTypes.JOIN_TEAM,
PostTypes.LEAVE_TEAM,
PostTypes.REMOVE_FROM_TEAM,
],
IGNORE_POST_TYPES: [
PostTypes.ADD_REMOVE,
PostTypes.ADD_TO_CHANNEL,
PostTypes.CHANNEL_DELETED,
PostTypes.CHANNEL_UNARCHIVED,
PostTypes.JOIN_LEAVE,
PostTypes.JOIN_CHANNEL,
PostTypes.LEAVE_CHANNEL,
PostTypes.REMOVE_FROM_CHANNEL,
PostTypes.JOIN_TEAM,
PostTypes.LEAVE_TEAM,
PostTypes.ADD_TO_TEAM,
PostTypes.REMOVE_FROM_TEAM,
],
};