Page MenuHomePhabricator

D6616.diff
No OneTemporary

D6616.diff

diff --git a/keyserver/src/updaters/thread-updaters.js b/keyserver/src/updaters/thread-updaters.js
--- a/keyserver/src/updaters/thread-updaters.js
+++ b/keyserver/src/updaters/thread-updaters.js
@@ -644,7 +644,12 @@
relationshipChangeset: addMembersRelationshipChangeset,
} = addMembersChangeset;
addedMemberIDs = addMembersMembershipRows
- .filter(row => row.operation === 'save' && Number(row.role) > 0)
+ .filter(
+ row =>
+ row.operation === 'save' &&
+ row.threadID === request.threadID &&
+ Number(row.role) > 0,
+ )
.map(row => row.userID);
membershipRows.push(...addMembersMembershipRows);
relationshipChangeset.addAll(addMembersRelationshipChangeset);

File Metadata

Mime Type
text/plain
Expires
Sat, Dec 21, 10:00 AM (16 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2687354
Default Alt Text
D6616.diff (745 B)

Event Timeline