Add empty push rules into account data on account creation
MODIFY
clientapi/auth/storage/accounts/storage.go
clientapi/auth/storage/accounts/storage.go
@@ -140,6 +140,17 @@ func (d *Database) CreateAccount(
}
return nil, err
}
+ if err := d.SaveAccountData(ctx, localpart, "", "m.push_rules", `{
+ "global": {
+ "content": [],
+ "override": [],
+ "room": [],
+ "sender": [],
+ "underride": []
+ }
+ }`); err != nil {
+ return nil, err
+ }
return d.accounts.insertAccount(ctx, localpart, hash, appserviceID)
}

Add empty push rules into account data on account creation (#862)