mirror of
https://github.com/hoernschen/dendrite.git
synced 2024-12-27 07:28:27 +00:00
Add empty push rules into account data on account creation (#862)
This commit is contained in:
parent
6885c10083
commit
68ee11d96c
1 changed files with 11 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue