feat: person @mentions edit-mode infrastructure (PR-B1, #362) #369
@@ -103,7 +103,7 @@ async function selectPerson(person: Person) {
|
|||||||
const after = value.slice(cursorPos);
|
const after = value.slice(cursorPos);
|
||||||
value = before + replacement + after;
|
value = before + replacement + after;
|
||||||
|
|
||||||
if (!mentionedPersons.some((m) => m.personId === person.id)) {
|
if (!mentionedPersons.some((existing) => existing.personId === person.id)) {
|
||||||
mentionedPersons = [...mentionedPersons, { personId: person.id!, displayName }];
|
mentionedPersons = [...mentionedPersons, { personId: person.id!, displayName }];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user