Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions crates/tasks/src/user.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,9 @@ impl RunnableJob for DeactivateUserJob {
// we want the user to be locked out as soon as possible
repo.save().await.map_err(JobError::retry)?;

let mxid = matrix.mxid(&user.username);
info!("Deactivating user {} on homeserver", mxid);
info!("Deactivating user {} on homeserver", user.username);
matrix
.delete_user(&mxid, self.hs_erase())
.delete_user(&user.username, self.hs_erase())
.await
.map_err(JobError::retry)?;

Expand Down Expand Up @@ -123,10 +122,9 @@ impl RunnableJob for ReactivateUserJob {
.context("User not found")
.map_err(JobError::fail)?;

let mxid = matrix.mxid(&user.username);
info!("Reactivating user {} on homeserver", mxid);
info!("Reactivating user {} on homeserver", user.username);
matrix
.reactivate_user(&mxid)
.reactivate_user(&user.username)
.await
.map_err(JobError::retry)?;

Expand Down
Loading