forked from Ivasoft/mattermost-mobile
* wip checkin * wip checkin because my system is messed up again * correct the add user and remove user from channel functions. THe user and channel ids sometimes come from the broudcast field, not the data object * remove old comments * remove old comments * remove old comments * add back in unarchive handler. handleChannelUpdateEvent will also update the deleteAt value for a channel, but does not get called when unarchive from the channel view, only through the system console. * nit remove empty line * wip * wip * remove handleChannelConvertedEvent * remove handleChannelDirectAddedEvent * wip * wip * wip * Fix websockets events * Address feedback * Ensure categories and some refactoring * Self review fixes * Fix category creation bug * Address feedback and minor improvements * Address feedback * Fix lint Co-authored-by: Daniel Espino García <larkox@gmail.com>
11 lines
351 B
TypeScript
11 lines
351 B
TypeScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
export function makeCategoryId(name: string, userId: string, teamId: string) {
|
|
return `${name}_${userId}_${teamId}`;
|
|
}
|
|
|
|
export function makeCategoryChannelId(teamId: string, channelId: string) {
|
|
return `${teamId}_${channelId}`;
|
|
}
|