Skip to content

Commit

Permalink
Ensure AS users are registered before processing membership events
Browse files Browse the repository at this point in the history
  • Loading branch information
sandhose committed Jan 4, 2024
1 parent cbf2d45 commit 6c38542
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/appservice/Appservice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -645,6 +645,7 @@ export class Appservice extends EventEmitter {
if (domain !== botDomain) return; // can't be impersonated, so don't try

const intent = this.getIntentForUserId(event['state_key']);
await intent.ensureRegistered();

const targetMembership = event["content"]["membership"];
if (targetMembership === "join") {
Expand Down

0 comments on commit 6c38542

Please sign in to comment.