forked from Ivasoft/mattermost-mobile
* Some extra work on voice channels interface * Fixing some TODOs * Improving styling of call in channel * Improve calls monitoring * Replacing some of the fontawesome icons with the compass ones * Improving the layout * Migrating to webrtc2 for unified plan * Add screen on and off behavior * Adding incall manager plugin * Moving everything into the products/calls folder * Make products modules routes relatives * Make products modules routes @mmproducts * Removing initiator parameter * Removing trickle parameter * Simplifying code * Removing underscore from private variables * Removing underscore from private things * More simplifications * More simplifications * More simplifications * Changing sha sum for mmjstool * Fixing typo * Migrating simple-peer to typescript * Migrating simple-peer to typescript * Improving the size of the screen share * Adding feature flag to disable the calls feature in mobile * Fixing some tests * Removing obsolte tests * Added call ended support for the post messages * Fixing some warnings in the tests * Adding JoinCall tests * Adding CallMessage tests * Adding CurrentCall unit tests * Adding CallAvatar unit tests * Adding FloatingCallContainer unit tests * Adding StartCall unit tests * Adding EnableDisableCalls unit tests * Adding CallDuration tests * Improving CallDuration tests * Adding CallScreen unit tests * Adding CallOtherActions screen tests * Fixing some dark theme styles * Fixing tests * More robustness around connecting/disconnecting * Adding FormattedRelativeTime tests * Adding tests for ChannelItem * Adding tests for ChannelInfo * Adding selectors tests * Adding reducers unit tests * Adding actions tests * Removing most of the TODOs * Removing another TODO * Updating tests snapshots * Removing the last TODO * Fixed a small problem on pressing while a call is ongoing * Remove all the inlined functions * Replacing usage of isLandscape selector with useWindowDimensions * Removed unnecesary makeStyleSheetFromTheme * Removing unneded properties from call_duration * Fixing possible null channels return from getChannel selector * Moving other inlined functions to its own constant * Simplifiying enable/disable calls component * Improving the behavior when you are in the call of the current channel * Adding missing translation strings * Simplified a bit the EnableDisableCalls component * Moving other inlined functions to its own constant * Updating snapshots * Improving usage of makeStyleSheetFromTheme * Moving data reformating from the rest client to the redux action * Adding calls to the blocklist to the redux-persist * Fixing tests * Updating snapshots * Update file icon name to the last compass icons version * Fix loading state * Only show the call connected if the websocket gets connected * Taking into consideration the indicator bar to position the calls new bars * Making the MoreMessagesButton component aware of calls components * Updating snapshots * Fixing tests * Updating snapshot * Fixing different use cases for start call channel menu * Fixing tests * Ask for confirmation to start a call when you are already in another call * Update app/products/calls/components/floating_call_container.tsx Co-authored-by: Elias Nahum <nahumhbl@gmail.com> * Memoizing userIds in join call * Applying suggestion around combine the blocklist for calls with the one for typing * Adding explicit types to the rest client * Removing unneeded permission * Making updateIntervalInSeconds prop optional in FormattedRelativeTime * Making updateIntervalInSeconds prop optional in CallDuration Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
67 lines
3.0 KiB
TypeScript
67 lines
3.0 KiB
TypeScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
const WebsocketEvents = {
|
|
POSTED: 'posted',
|
|
POST_EDITED: 'post_edited',
|
|
POST_DELETED: 'post_deleted',
|
|
POST_UNREAD: 'post_unread',
|
|
CHANNEL_CONVERTED: 'channel_converted',
|
|
CHANNEL_CREATED: 'channel_created',
|
|
CHANNEL_DELETED: 'channel_deleted',
|
|
CHANNEL_UNARCHIVED: 'channel_restored',
|
|
CHANNEL_UPDATED: 'channel_updated',
|
|
CHANNEL_VIEWED: 'channel_viewed',
|
|
CHANNEL_MEMBER_UPDATED: 'channel_member_updated',
|
|
CHANNEL_SCHEME_UPDATED: 'channel_scheme_updated',
|
|
DIRECT_ADDED: 'direct_added',
|
|
ADDED_TO_TEAM: 'added_to_team',
|
|
LEAVE_TEAM: 'leave_team',
|
|
UPDATE_TEAM: 'update_team',
|
|
USER_ADDED: 'user_added',
|
|
USER_REMOVED: 'user_removed',
|
|
USER_UPDATED: 'user_updated',
|
|
USER_ROLE_UPDATED: 'user_role_updated',
|
|
ROLE_ADDED: 'role_added',
|
|
ROLE_REMOVED: 'role_removed',
|
|
ROLE_UPDATED: 'role_updated',
|
|
TYPING: 'typing',
|
|
STOP_TYPING: 'stop_typing',
|
|
PREFERENCE_CHANGED: 'preference_changed',
|
|
PREFERENCES_CHANGED: 'preferences_changed',
|
|
PREFERENCES_DELETED: 'preferences_deleted',
|
|
EPHEMERAL_MESSAGE: 'ephemeral_message',
|
|
STATUS_CHANGED: 'status_change',
|
|
HELLO: 'hello',
|
|
WEBRTC: 'webrtc',
|
|
REACTION_ADDED: 'reaction_added',
|
|
REACTION_REMOVED: 'reaction_removed',
|
|
EMOJI_ADDED: 'emoji_added',
|
|
LICENSE_CHANGED: 'license_changed',
|
|
CONFIG_CHANGED: 'config_changed',
|
|
PLUGIN_STATUSES_CHANGED: 'plugin_statuses_changed',
|
|
OPEN_DIALOG: 'open_dialog',
|
|
INCREASE_POST_VISIBILITY_BY_ONE: 'increase_post_visibility_by_one',
|
|
MEMBERROLE_UPDATED: 'memberrole_updated',
|
|
RECEIVED_GROUP: 'received_group',
|
|
THREAD_UPDATED: 'thread_updated',
|
|
THREAD_FOLLOW_CHANGED: 'thread_follow_changed',
|
|
THREAD_READ_CHANGED: 'thread_read_changed',
|
|
APPS_FRAMEWORK_REFRESH_BINDINGS: 'custom_com.mattermost.apps_refresh_bindings',
|
|
SIDEBAR_CATEGORY_CREATED: 'sidebar_category_created',
|
|
SIDEBAR_CATEGORY_UPDATED: 'sidebar_category_updated',
|
|
SIDEBAR_CATEGORY_DELETED: 'sidebar_category_deleted',
|
|
SIDEBAR_CATEGORY_ORDER_UPDATED: 'sidebar_category_order_updated',
|
|
CALLS_CHANNEL_ENABLED: 'custom_com.mattermost.calls_channel_enable_voice',
|
|
CALLS_CHANNEL_DISABLED: 'custom_com.mattermost.calls_channel_disable_voice',
|
|
CALLS_USER_CONNECTED: 'custom_com.mattermost.calls_user_connected',
|
|
CALLS_USER_DISCONNECTED: 'custom_com.mattermost.calls_user_disconnected',
|
|
CALLS_USER_MUTED: 'custom_com.mattermost.calls_user_muted',
|
|
CALLS_USER_UNMUTED: 'custom_com.mattermost.calls_user_unmuted',
|
|
CALLS_USER_VOICE_ON: 'custom_com.mattermost.calls_user_voice_on',
|
|
CALLS_USER_VOICE_OFF: 'custom_com.mattermost.calls_user_voice_off',
|
|
CALLS_CALL_START: 'custom_com.mattermost.calls_call_start',
|
|
CALLS_SCREEN_ON: 'custom_com.mattermost.calls_user_screen_on',
|
|
CALLS_SCREEN_OFF: 'custom_com.mattermost.calls_user_screen_off',
|
|
};
|
|
export default WebsocketEvents;
|