Page MenuHomePhorge

D12488.1765342753.diff
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

D12488.1765342753.diff

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<typeof thinThreadTypes>;
-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<typeof thickThreadTypes>;
+
+export type ThreadType = ThinThreadType | ThickThreadType;
export const threadTypes = Object.freeze({
...thinThreadTypes,
+ ...thickThreadTypes,
});
export function assertThreadType(threadType: number): ThreadType {

File Metadata

Mime Type
text/plain
Expires
Wed, Dec 10, 4:59 AM (14 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5861185
Default Alt Text
D12488.1765342753.diff (1 KB)

Event Timeline