-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restore out of channel and some cleanup (#8050)
* Restore out of channel and some cleanup * Fix i18n
- Loading branch information
Showing
5 changed files
with
282 additions
and
229 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. | ||
// See LICENSE.txt for license information. | ||
|
||
import type {UserMentionSections} from './types'; | ||
import type GroupModel from '@typings/database/models/servers/group'; | ||
import type UserModel from '@typings/database/models/servers/user'; | ||
|
||
export const SECTION_KEY_TEAM_MEMBERS = 'teamMembers'; | ||
export const SECTION_KEY_IN_CHANNEL = 'inChannel'; | ||
export const SECTION_KEY_OUT_OF_CHANNEL = 'outChannel'; | ||
export const SECTION_KEY_SPECIAL = 'special'; | ||
export const SECTION_KEY_GROUPS = 'groups'; | ||
|
||
export const emptyUserlList: Array<UserModel | UserProfile> = []; | ||
export const emptySectionList: UserMentionSections = []; | ||
export const emptyGroupList: GroupModel[] = []; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. | ||
// See LICENSE.txt for license information. | ||
|
||
import {type SectionListData} from 'react-native'; | ||
|
||
import type GroupModel from '@typings/database/models/servers/group'; | ||
import type UserModel from '@typings/database/models/servers/user'; | ||
|
||
export type SpecialMention = { | ||
completeHandle: string; | ||
id: string; | ||
defaultMessage: string; | ||
} | ||
|
||
export type UserMentionSections = Array<SectionListData<UserProfile|UserModel|GroupModel|SpecialMention>>; |
Oops, something went wrong.