Changeset View
Changeset View
Standalone View
Standalone View
lib/types/thread-types.js
Show First 20 Lines • Show All 483 Lines • ▼ Show 20 Lines | |||||
export const maxReadSidebars = 3; | export const maxReadSidebars = 3; | ||||
// We can show a max of 5 sidebars inline underneath their parent | // We can show a max of 5 sidebars inline underneath their parent | ||||
// in the chat tab if every one of the displayed sidebars is unread | // in the chat tab if every one of the displayed sidebars is unread | ||||
export const maxUnreadSidebars = 5; | export const maxUnreadSidebars = 5; | ||||
export type ThreadStoreThreadInfos = LegacyRawThreadInfos; | export type ThreadStoreThreadInfos = LegacyRawThreadInfos; | ||||
export type ChatMentionCandidate = { | |||||
+threadInfo: ResolvedThreadInfo, | |||||
+rawChatName: string | ThreadEntity, | |||||
}; | |||||
export type ChatMentionCandidates = { | export type ChatMentionCandidates = { | ||||
+[id: string]: ResolvedThreadInfo, | +[id: string]: ChatMentionCandidate, | ||||
}; | }; | ||||
export type ChatMentionCandidatesObj = { | export type ChatMentionCandidatesObj = { | ||||
+[id: string]: ChatMentionCandidates, | +[id: string]: ChatMentionCandidates, | ||||
}; | }; | ||||
export type UserProfileThreadInfo = { | export type UserProfileThreadInfo = { | ||||
+threadInfo: ThreadInfo, | +threadInfo: ThreadInfo, | ||||
+pendingPersonalThreadUserInfo?: UserInfo, | +pendingPersonalThreadUserInfo?: UserInfo, | ||||
}; | }; |