[Fix] User deletion & migration
This commit is contained in:
parent
da5a5a5dff
commit
722eb9b025
8 changed files with 150 additions and 119 deletions
|
|
@ -66,7 +66,11 @@ impl RhoManager {
|
|||
)
|
||||
.await;
|
||||
|
||||
let replacement = user_ids.iter().copied().collect::<std::collections::HashSet<_>>();
|
||||
for user_id in previous_users {
|
||||
if !replacement.contains(&user_id) {
|
||||
rho.detach_user_clients(user_id).await;
|
||||
}
|
||||
if self
|
||||
.users
|
||||
.get(&user_id)
|
||||
|
|
|
|||
Loading…
Reference in a new issue