Skip to content

Commit cc6bf84

Browse files
committed
Don't store one stored person override per redeemed 3pid invite
1 parent a193e29 commit cc6bf84

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/Conference.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -117,12 +117,11 @@ export class Conference {
117117
const people = await this.findPeopleWithId(emailInvite[RS_3PID_PERSON_ID]);
118118
if (people?.length) {
119119
// Finally, associate the users.
120-
for (const person of people) {
121-
const clonedPerson = objectFastClone(person);
122-
clonedPerson.matrix_id = event['state_key'];
123-
await this.createUpdatePerson(clonedPerson);
124-
LogService.info("Conference", `Updated ${clonedPerson.id} to be associated with ${clonedPerson.matrix_id}`);
125-
}
120+
let person = people[0];
121+
const clonedPerson = objectFastClone(person);
122+
clonedPerson.matrix_id = event['state_key'];
123+
await this.createUpdatePerson(clonedPerson);
124+
LogService.info("Conference", `Updated ${clonedPerson.id} to be associated with ${clonedPerson.matrix_id}`);
126125

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

0 commit comments

Comments
 (0)