Skip to content

Commit

Permalink
Actually pass the current user ID into rewriteDefaultRules.
Browse files Browse the repository at this point in the history
  • Loading branch information
clokep committed Mar 3, 2023
1 parent ccdddea commit 9949adf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8522,7 +8522,7 @@ export class MatrixClient extends TypedEventEmitter<EmittedEvents, ClientEventHa
*/
public setPushRules(rules: IPushRules): void {
// Fix-up defaults, if applicable.
this.pushRules = PushProcessor.rewriteDefaultRules(rules);
this.pushRules = PushProcessor.rewriteDefaultRules(rules, this.getUserId()!);
// Pre-calculate any necessary caches.
this.pushProcessor.updateCachedPushRuleKeys(this.pushRules);
}
Expand Down

0 comments on commit 9949adf

Please sign in to comment.