fix: better migration, force e2ee device key updates
This commit is contained in:
parent
9152b877a7
commit
bef4fe50ce
2 changed files with 8 additions and 1 deletions
|
@ -710,6 +710,12 @@ impl Database {
|
|||
.insert(&shortstatekey, &statekey)?;
|
||||
}
|
||||
|
||||
// Force E2EE device list updates so we can send them over federation
|
||||
for user_id in db.users.iter().filter_map(|r| r.ok()) {
|
||||
db.users
|
||||
.mark_device_key_update(&user_id, &db.rooms, &db.globals)?;
|
||||
}
|
||||
|
||||
db.globals.bump_database_version(10)?;
|
||||
|
||||
println!("Migration: 9 -> 10 finished");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue