mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-20 22:00:43 +08:00
Fix assignee and peer switching e2e tests
This commit is contained in:
@@ -33,7 +33,7 @@
|
||||
const parsedNodeId = parseNodeId(inputValue);
|
||||
if (parsedNodeId) {
|
||||
assignee = `${parsedNodeId.prefix}${parsedNodeId.pubkey}`;
|
||||
if (!updatedAssignees.find(({ id }) => id === assignee)) {
|
||||
if (updatedAssignees.find(({ id }) => id === assignee)) {
|
||||
valid = false;
|
||||
validationMessage = "This assignee is already added";
|
||||
} else {
|
||||
|
||||
@@ -220,7 +220,9 @@
|
||||
revision: revisionId,
|
||||
comment: commentId,
|
||||
reaction,
|
||||
active: Boolean(authors.find(({ id }) => id === session.publicKey)),
|
||||
active: !authors.find(
|
||||
({ id }) => utils.parseNodeId(id)?.pubkey === session.publicKey,
|
||||
),
|
||||
},
|
||||
session.id,
|
||||
);
|
||||
@@ -378,7 +380,9 @@
|
||||
type: "revision.react",
|
||||
revision: revisionId,
|
||||
reaction,
|
||||
active: Boolean(authors.find(({ id }) => id === session.publicKey)),
|
||||
active: !authors.find(
|
||||
({ id }) => utils.parseNodeId(id)?.pubkey === session.publicKey,
|
||||
),
|
||||
},
|
||||
session.id,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user