Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3518488
D13758.id45304.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D13758.id45304.diff
View Options
diff --git a/lib/shared/dm-ops/dm-op-utils.js b/lib/shared/dm-ops/dm-op-utils.js
--- a/lib/shared/dm-ops/dm-op-utils.js
+++ b/lib/shared/dm-ops/dm-op-utils.js
@@ -341,6 +341,8 @@
const existingThreadDetails =
getCreateThickRawThreadInfoInputFromThreadInfo(rawThreadInfo);
+ const messageID = uuid.v4();
+
invariant(viewerID, 'viewerID should be set');
const addViewerToThreadMembersOperation: DMAddViewerToThreadMembersOperation =
{
@@ -348,7 +350,7 @@
existingThreadDetails,
editorID: viewerID,
time: Date.now(),
- messageID: uuid.v4(),
+ messageID,
addedUserIDs: newMemberIDs,
};
const viewerOperationSpecification: OutboundDMOperationSpecification = {
@@ -367,7 +369,7 @@
threadID: threadInfo.id,
editorID: viewerID,
time: Date.now(),
- messageID: uuid.v4(),
+ messageID,
addedUserIDs: newMemberIDs,
};
const newMemberIDsSet = new Set<string>(newMemberIDs);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Dec 23, 8:04 PM (14 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2696132
Default Alt Text
D13758.id45304.diff (1 KB)
Attached To
Mode
D13758: [lib] Fix creating thick threads on added members robotext
Attached
Detach File
Event Timeline
Log In to Comment