Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32405363
D12488.1765342753.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D12488.1765342753.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D12488: [lib] Introduce thickThreadTypes and ThickThreadType
Attached
Detach File
Event Timeline
Log In to Comment