diff options
author | Timo Kösters <timo@koesters.xyz> | 2023-08-07 16:11:11 +0000 |
---|---|---|
committer | Timo Kösters <timo@koesters.xyz> | 2023-08-07 16:11:11 +0000 |
commit | 3e518773e20849bb712c7942fcc2d0a5147f7868 (patch) | |
tree | a03cf969c97996ba985add37c40a0e863bb643c1 /src/database | |
parent | 888f7e44035d88f4b07d52092cf9b93eb90b5b08 (diff) | |
parent | d82c26f0a9a92d0193924ddc3d81b7b0a152862b (diff) | |
download | conduit-3e518773e20849bb712c7942fcc2d0a5147f7868.zip |
Merge branch 'improvements' into 'next'
cross signing fixes
See merge request famedly/conduit!532
Diffstat (limited to 'src/database')
-rw-r--r-- | src/database/key_value/users.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/database/key_value/users.rs b/src/database/key_value/users.rs index 0301cda..2b09d68 100644 --- a/src/database/key_value/users.rs +++ b/src/database/key_value/users.rs @@ -449,6 +449,7 @@ impl service::users::Data for KeyValueDatabase { master_key: &Raw<CrossSigningKey>, self_signing_key: &Option<Raw<CrossSigningKey>>, user_signing_key: &Option<Raw<CrossSigningKey>>, + notify: bool, ) -> Result<()> { // TODO: Check signatures let mut prefix = user_id.as_bytes().to_vec(); @@ -530,7 +531,9 @@ impl service::users::Data for KeyValueDatabase { .insert(user_id.as_bytes(), &user_signing_key_key)?; } - self.mark_device_key_update(user_id)?; + if notify { + self.mark_device_key_update(user_id)?; + } Ok(()) } |