fixup! perf(knock): add database cache

rename duplicated invite to leave
This commit is contained in:
Matthias Ahouansou 2024-07-01 11:27:10 +01:00
parent 96f3b88132
commit 960259720b
No known key found for this signature in database

View file

@ -117,12 +117,12 @@ impl service::rooms::state_cache::Data for KeyValueDatabase {
&roomuser_id,
&services().globals.next_count()?.to_be_bytes(),
)?;
self.userroomid_invitestate.remove(&userroom_id)?;
self.roomuserid_invitecount.remove(&roomuser_id)?;
self.userroomid_joined.remove(&userroom_id)?;
self.roomuserid_joined.remove(&roomuser_id)?;
self.userroomid_invitestate.remove(&userroom_id)?;
self.roomuserid_invitecount.remove(&roomuser_id)?;
self.userroomid_invitestate.remove(&userroom_id)?;
self.roomuserid_invitecount.remove(&roomuser_id)?;
self.userroomid_leftstate.remove(&userroom_id)?;
self.roomuserid_leftcount.remove(&roomuser_id)?;
Ok(())
}