mattermost-mobile-upstream/app/constants/categories.ts
Devin Binnie daec2522f3
[MM-68255] Enable mobile support for Managed Categories (#9683)
* [MM-68255] Enable mobile support for Managed Categories

* Fix error handling

* More feedback

* Move function to correct file

* PR feedback

* Some changes

* Feedback
2026-04-16 10:01:51 -04:00

20 lines
711 B
TypeScript

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
export const CHANNELS_CATEGORY = 'channels';
export const DMS_CATEGORY = 'direct_messages';
export const FAVORITES_CATEGORY = 'favorites';
export const UNREADS_CATEGORY = 'unreads';
/** Prefix for locally synthesized sidebar categories (managed channel groupings). Not server UUIDs. */
export const MANAGED_LOCAL_CATEGORY_PREFIX = 'mm_managed:';
export const MANAGED_CHANNEL_CATEGORIES_GROUP = 'managed_channel_categories';
export const MANAGED_CHANNEL_CATEGORIES_FIELD = 'category_name';
export default {
CHANNELS_CATEGORY,
DMS_CATEGORY,
FAVORITES_CATEGORY,
UNREADS_CATEGORY,
};