feat(presence): remove old presence updates
This commit is contained in:
parent
dd85316bd9
commit
4d22cb502e
2 changed files with 7 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue