37 errors left

This commit is contained in:
Timo Kösters 2022-10-05 20:33:55 +02:00 committed by Nyaaori
parent 44fe6d1554
commit 33a2b2b772
No known key found for this signature in database
GPG key ID: E7819C3ED4D1F82E
19 changed files with 764 additions and 482 deletions

View file

@ -290,7 +290,7 @@ impl Service {
}
pub fn get_devicelist_version(&self, user_id: &UserId) -> Result<Option<u64>> {
self.db.devicelist_version(user_id)
self.db.get_devicelist_version(user_id)
}
pub fn all_devices_metadata<'a>(
@ -310,7 +310,7 @@ impl Service {
// Set the password to "" to indicate a deactivated account. Hashes will never result in an
// empty string, so the user will not be able to log in again. Systems like changing the
// password without logging in should check if the account is deactivated.
self.userid_password.insert(user_id.as_bytes(), &[])?;
self.db.set_password(user_id, None)?;
// TODO: Unhook 3PID
Ok(())