feat(presence): remove old presence updates

This commit is contained in:
Jakub Kubík 2022-11-21 22:48:58 +01:00
parent dd85316bd9
commit 4d22cb502e
No known key found for this signature in database
GPG key ID: D3A0D5D60F3A173F
2 changed files with 7 additions and 3 deletions

View file

@ -340,6 +340,13 @@ impl service::rooms::edus::presence::Data for KeyValueDatabase {
Some(user_id)
})
{
match userid_presenceupdate.remove(&*user_id.as_bytes()) {
Ok(_) => (),
Err(e) => {
error!("An errord occured while removing a stale presence update: {e}")
}
}
for room_id in services()
.rooms
.state_cache

View file

@ -825,9 +825,6 @@ impl KeyValueDatabase {
);
}
// Flush old presence data
db.userid_presenceupdate.clear()?;
services().admin.start_handler();
// Set emergency access for the conduit user