mirror of
https://github.com/mattermost/mattermost-mobile.git
synced 2026-11-06 02:40:15 +00:00
* Expo-Router partial migration * Full migration to ExpoRouter * i18n * add tests * library hardware-keyboard android new arch support fix * library rnshare android new arch support fix * library rnutils android new arch support fix * library secure-pdf-viewer add new arch support * Enable new arch on iOS and Android * update emm and network client with new-arch * update intune to use new-arch * performance improvements * fix tests * fixes post input on new-arch * Merge branch 'main' into expo-router * fix android emoji picker * align package-lock.json * i18n * feedback review * feedback review * android 16kb patch * Refactored emoji picker keyboard using a state machine * set android launch_screen in drawables instead of layout * no conditional hooks * remove duplicate call in test * address feedback * fix tests and address more feedback * small corrections * small corrections * small corrections * fix draft test * fix draft test 2 * remove navigateToScreen in draff test * fix nit in draft test * remove doc file * remove doc * run tests in parallel * Feedback review * fix snapshots * improve test coverage * fix i18n * upgrade to React Native 0.83.9, Expo 55, React 19, and New Architecture Bumps core dependencies to their latest versions: - React Native 0.77.3 → 0.83.9 (New Architecture enabled) - React 18.3.1 → 19.2.5 - Expo SDK 52 → 55 - TypeScript 5.8.3 → 6.0.3 - Node.js 22.16.0 → 24.15.0 - react-native-reanimated 3.17.3 → 4.3.0 - Various other dependency upgrades Migrates iOS AppDelegate from Objective-C to Swift, updates Android build tooling and Gradle wrapper, refreshes all patches and font assets, and adapts app code, tests, and CI workflows throughout for API changes introduced by these upgrades. * remove unecessary dismissKeyboard in notifications * feedback review * update intune to use new-arch * update @mattermost deps * missing i18n string * additional fixes * update fastlane * Re-implementing global classification banners on top of rn83 * Refactoring to de-couple the classification banner from the layout * Implementing per-channel banners on mobile * Removing custom header in favor of common component * Making fixes for coderabbit * Improving padding calculation * Converting global classification banner to use portals * Removing dead code, adding deletion check * Addressing dryrun securit concerns * Removing call for template field, improving consistency * MM-68208 Storing system property values in WatermelonDB (#9781) * Added persistence layer to system properties * Making debounce behavior more consistent * Cleaning up debounce logic from store persistence * Addressing PR feedback * Removing ephemeral store usage and employing observables - Changing name of group to access_control * Updating unit tests * Refactoring to improve code consistency - Removing any patterns introduced that weren't already established in the repo - Removing hooks with database reads in favor of withObservables and withDatabase pattern - Simplifying _layout.tsx by removing inset modification, now handled in the Container HoC component - Moved some repeated hook logic into its own utils file * Refactoring to use propertyfield and propertyvalue tables instead of system - Simplified remote actions to purely perform API call, and call a local action to sync values - Using local action layer to perform syncing and removal operations of property fields and values - Observables now pre-filter for active fields / values via querying for delete_at=0 * Improving consistency of local actions - Added unit tests for syncPropertyFieldsByGroupId, syncPropertyValuesByTargetId, clearClassificationData * Replacing local actions with operator handlers * Removing needless mocks from unit tests * Consolidating operator handlers - Leaving 1 handler for fields and 1 for values, each of them evaluating whether to delete or upsert values received in the function call * MM-68208 Making changes based on feedback - Removing !visible guard in global classification container - Increasing clarity of comment for clearing of stale fields - Updating log messages to be more clear * Batching database operations together for fields and values * Consolidating API call for fetching classification data - Preparation for caching mechanism * Updating field names to the unified classification * Updating E2E test values to match current field names --------- Co-authored-by: Elias Nahum <nahumhbl@gmail.com> Co-authored-by: Mattermost Build <build@mattermost.com>
130 lines
5.9 KiB
TypeScript
130 lines
5.9 KiB
TypeScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
import Calls from '@constants/calls';
|
|
|
|
const WebsocketEvents = {
|
|
POSTED: 'posted',
|
|
POST_ACKNOWLEDGEMENT_ADDED: 'post_acknowledgement_added',
|
|
POST_ACKNOWLEDGEMENT_REMOVED: 'post_acknowledgement_removed',
|
|
POST_EDITED: 'post_edited',
|
|
POST_DELETED: 'post_deleted',
|
|
POST_UNREAD: 'post_unread',
|
|
CATEGORY_CREATED: 'sidebar_category_created',
|
|
CATEGORY_UPDATED: 'sidebar_category_updated',
|
|
CATEGORY_DELETED: 'sidebar_category_deleted',
|
|
CATEGORY_ORDER_UPDATED: 'sidebar_category_order_updated',
|
|
CHANNEL_CONVERTED: 'channel_converted',
|
|
CHANNEL_CREATED: 'channel_created',
|
|
CHANNEL_DELETED: 'channel_deleted',
|
|
CHANNEL_UNARCHIVED: 'channel_restored',
|
|
CHANNEL_UPDATED: 'channel_updated',
|
|
CHANNEL_VIEWED: 'channel_viewed',
|
|
MULTIPLE_CHANNELS_VIEWED: 'multiple_channels_viewed',
|
|
CHANNEL_MEMBER_UPDATED: 'channel_member_updated',
|
|
CHANNEL_SCHEME_UPDATED: 'channel_scheme_updated',
|
|
DIRECT_ADDED: 'direct_added',
|
|
GROUP_ADDED: 'group_added', // Added to a group channel
|
|
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_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',
|
|
PING: 'ping',
|
|
PONG: 'pong',
|
|
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_ENABLED: 'plugin_enabled',
|
|
PLUGIN_DISABLED: 'plugin_disabled',
|
|
PLUGIN_STATUSES_CHANGED: 'plugin_statuses_changed',
|
|
OPEN_DIALOG: 'open_dialog',
|
|
INCREASE_POST_VISIBILITY_BY_ONE: 'increase_post_visibility_by_one',
|
|
MEMBERROLE_UPDATED: 'memberrole_updated',
|
|
THREAD_UPDATED: 'thread_updated',
|
|
THREAD_FOLLOW_CHANGED: 'thread_follow_changed',
|
|
THREAD_READ_CHANGED: 'thread_read_changed',
|
|
DELETE_TEAM: 'delete_team',
|
|
RESTORE_TEAM: 'restore_team',
|
|
APPS_FRAMEWORK_REFRESH_BINDINGS: 'custom_com.mattermost.apps_refresh_bindings',
|
|
POST_TRANSLATION_UPDATED: 'post_translation_updated',
|
|
|
|
CALLS_CHANNEL_ENABLED: `custom_${Calls.PluginId}_channel_enable_voice`,
|
|
CALLS_CHANNEL_DISABLED: `custom_${Calls.PluginId}_channel_disable_voice`,
|
|
CALLS_USER_JOINED: `custom_${Calls.PluginId}_user_joined`,
|
|
CALLS_USER_LEFT: `custom_${Calls.PluginId}_user_left`,
|
|
CALLS_USER_MUTED: `custom_${Calls.PluginId}_user_muted`,
|
|
CALLS_USER_UNMUTED: `custom_${Calls.PluginId}_user_unmuted`,
|
|
CALLS_USER_VOICE_ON: `custom_${Calls.PluginId}_user_voice_on`,
|
|
CALLS_USER_VOICE_OFF: `custom_${Calls.PluginId}_user_voice_off`,
|
|
CALLS_CALL_START: `custom_${Calls.PluginId}_call_start`,
|
|
CALLS_CALL_END: `custom_${Calls.PluginId}_call_end`,
|
|
CALLS_SCREEN_ON: `custom_${Calls.PluginId}_user_screen_on`,
|
|
CALLS_SCREEN_OFF: `custom_${Calls.PluginId}_user_screen_off`,
|
|
CALLS_USER_RAISE_HAND: `custom_${Calls.PluginId}_user_raise_hand`,
|
|
CALLS_USER_UNRAISE_HAND: `custom_${Calls.PluginId}_user_unraise_hand`,
|
|
CALLS_USER_REACTED: `custom_${Calls.PluginId}_user_reacted`,
|
|
CALLS_JOB_STATE: `custom_${Calls.PluginId}_call_job_state`,
|
|
CALLS_HOST_CHANGED: `custom_${Calls.PluginId}_call_host_changed`,
|
|
CALLS_USER_DISMISSED_NOTIFICATION: `custom_${Calls.PluginId}_user_dismissed_notification`,
|
|
CALLS_CAPTION: `custom_${Calls.PluginId}_caption`,
|
|
CALLS_HOST_MUTE: `custom_${Calls.PluginId}_host_mute`,
|
|
CALLS_HOST_LOWER_HAND: `custom_${Calls.PluginId}_host_lower_hand`,
|
|
CALLS_HOST_REMOVED: `custom_${Calls.PluginId}_host_removed`,
|
|
CALLS_CALL_STATE: `custom_${Calls.PluginId}_call_state`,
|
|
|
|
GROUP_RECEIVED: 'received_group',
|
|
GROUP_MEMBER_ADD: 'group_member_add',
|
|
GROUP_MEMBER_DELETE: 'group_member_delete',
|
|
GROUP_ASSOCIATED_TO_TEAM: 'received_group_associated_to_team',
|
|
GROUP_DISSOCIATED_TO_TEAM: 'received_group_not_associated_to_team',
|
|
GROUP_ASSOCIATED_TO_CHANNEL: 'received_group_associated_to_channel',
|
|
GROUP_DISSOCIATED_TO_CHANNEL: 'received_group_not_associated_to_channel',
|
|
CHANNEL_BOOKMARK_CREATED: 'channel_bookmark_created',
|
|
CHANNEL_BOOKMARK_UPDATED: 'channel_bookmark_updated',
|
|
CHANNEL_BOOKMARK_SORTED: 'channel_bookmark_sorted',
|
|
CHANNEL_BOOKMARK_DELETED: 'channel_bookmark_deleted',
|
|
|
|
SCHEDULED_POST_CREATED: 'scheduled_post_created',
|
|
SCHEDULED_POST_UPDATED: 'scheduled_post_updated',
|
|
SCHEDULED_POST_DELETED: 'scheduled_post_deleted',
|
|
CUSTOM_PROFILE_ATTRIBUTES_VALUES_UPDATED: 'custom_profile_attributes_values_updated',
|
|
PROPERTY_FIELD_CREATED: 'property_field_created',
|
|
PROPERTY_FIELD_UPDATED: 'property_field_updated',
|
|
PROPERTY_FIELD_DELETED: 'property_field_deleted',
|
|
PROPERTY_VALUES_UPDATED: 'property_values_updated',
|
|
CUSTOM_PROFILE_ATTRIBUTES_FIELD_UPDATED: 'custom_profile_attributes_field_updated',
|
|
CUSTOM_PROFILE_ATTRIBUTES_FIELD_CREATED: 'custom_profile_attributes_field_created',
|
|
CUSTOM_PROFILE_ATTRIBUTES_FIELD_DELETED: 'custom_profile_attributes_field_deleted',
|
|
|
|
// Agents
|
|
AGENTS_POST_UPDATE: 'custom_mattermost-ai_postupdate',
|
|
AGENTS_TOOL_CALL_STATUS: 'custom_mattermost-ai_tool_call_status_updated',
|
|
AGENTS_CONVERSATION_UPDATED: 'custom_mattermost-ai_conversation_updated',
|
|
|
|
// Burn on Read
|
|
BOR_POST_REVEALED: 'post_revealed',
|
|
BOR_POST_BURNED: 'post_burned',
|
|
BURN_ON_READ_ALL_REVEALED: 'burn_on_read_all_revealed',
|
|
|
|
// File access control
|
|
FILE_DOWNLOAD_REJECTED: 'file_download_rejected',
|
|
SHOW_TOAST: 'show_toast',
|
|
};
|
|
|
|
export default WebsocketEvents;
|