Skip to content

Commit

Permalink
Don't store one stored person override per redeemed 3pid invite
Browse files Browse the repository at this point in the history
  • Loading branch information
reivilibre committed Jan 21, 2025
1 parent a193e29 commit cc6bf84
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/Conference.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,11 @@ export class Conference {
const people = await this.findPeopleWithId(emailInvite[RS_3PID_PERSON_ID]);
if (people?.length) {
// Finally, associate the users.
for (const person of people) {
const clonedPerson = objectFastClone(person);
clonedPerson.matrix_id = event['state_key'];
await this.createUpdatePerson(clonedPerson);
LogService.info("Conference", `Updated ${clonedPerson.id} to be associated with ${clonedPerson.matrix_id}`);
}
let person = people[0];
const clonedPerson = objectFastClone(person);
clonedPerson.matrix_id = event['state_key'];
await this.createUpdatePerson(clonedPerson);
LogService.info("Conference", `Updated ${clonedPerson.id} to be associated with ${clonedPerson.matrix_id}`);

// Update permissions while we're here (if we can identify the room kind)
const aud = this.storedAuditoriums.find(a => a.roomId === roomId);
Expand Down

0 comments on commit cc6bf84

Please sign in to comment.