Page MenuHomePhabricator

D13758.id45297.diff
No OneTemporary

D13758.id45297.diff

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
@@ -278,6 +278,8 @@
const existingThreadDetails =
getCreateThickRawThreadInfoInputFromThreadInfo(rawThreadInfo);
+ const messageID = uuid.v4();
+
invariant(viewerID, 'viewerID should be set');
const addViewerToThreadMembersOperation: DMAddViewerToThreadMembersOperation =
{
@@ -285,7 +287,7 @@
existingThreadDetails,
editorID: viewerID,
time: Date.now(),
- messageID: uuid.v4(),
+ messageID,
addedUserIDs: newMemberIDs,
};
const viewerOperationSpecification: OutboundDMOperationSpecification = {
@@ -304,7 +306,7 @@
threadID: threadInfo.id,
editorID: viewerID,
time: Date.now(),
- messageID: uuid.v4(),
+ messageID,
addedUserIDs: newMemberIDs,
};
const newMemberIDsSet = new Set<string>(newMemberIDs);

File Metadata

Mime Type
text/plain
Expires
Thu, Nov 21, 9:09 PM (1 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2558553
Default Alt Text
D13758.id45297.diff (1 KB)

Event Timeline