Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3331725
D13758.id.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.id.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
Thu, Nov 21, 9:09 PM (2 h, 9 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2556401
Default Alt Text
D13758.id.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