fix: Stop appservice users from being wrongly deactivated during migration

This commit is contained in:
Ginger authored and Ellis Git committed 2026-07-11 14:55:43 +00:00
1 parent 3f2fae4ca7
commit f55207d5c7
3 files changed
+11 -1

No files matched your search

+1 -1
View File
@@ -867,7 +867,7 @@ async fn split_userid_password(services: &Services) -> Result {
userid_password.remove(&user_id);
remote_users = remote_users.saturating_add(1);
} else if hash.is_empty() {
if !(services.appservice.is_exclusive_user_id(&user_id).await
if !(services.appservice.is_user_id(&user_id).await
|| user_id == services.globals.server_user)
{
info!("Marking {user_id} as deactivated");