diff --git a/lib/types/thread-types-enum.js b/lib/types/thread-types-enum.js --- a/lib/types/thread-types-enum.js +++ b/lib/types/thread-types-enum.js @@ -19,10 +19,6 @@ // canonical thread for each single user // created under GENESIS. being deprecated in favor of PRIVATE GENESIS_PRIVATE: 7, - // local "thick" thread (outside of community). no parent, can only have - // sidebar children. currently a proxy for COMMUNITY_SECRET_SUBTHREAD until we - // launch actual E2E - LOCAL: 4, // aka "org". no parent, top-level, has admin COMMUNITY_ROOT: 8, // like COMMUNITY_ROOT, but members aren't voiced @@ -42,10 +38,25 @@ }); export type ThinThreadType = $Values; -export type ThreadType = ThinThreadType; +export const thickThreadTypes = Object.freeze({ + // local "thick" thread (outside of community). no parent, can only have + // sidebar children + LOCAL: 13, + // canonical thread for each pair of users. represents the friendship + PERSONAL: 14, + // canonical thread for each single user + PRIVATE: 15, + // has parent, not top-level (appears under parent in inbox), and visible to + // all members of parent + THICK_SIDEBAR: 16, +}); +export type ThickThreadType = $Values; + +export type ThreadType = ThinThreadType | ThickThreadType; export const threadTypes = Object.freeze({ ...thinThreadTypes, + ...thickThreadTypes, }); export function assertThreadType(threadType: number): ThreadType {