|
3 | 3 | // SPDX-License-Identifier: AGPL-3.0-only
|
4 | 4 | // Please see LICENSE in the repository root for full details.
|
5 | 5 |
|
| 6 | +#![expect( |
| 7 | + clippy::overly_complex_bool_expr, |
| 8 | + reason = "This is temporary, to remove a few safe guards" |
| 9 | +)] |
| 10 | + |
6 | 11 | //! # Migration
|
7 | 12 | //!
|
8 | 13 | //! This module provides the high-level logic for performing the Synapse-to-MAS
|
@@ -311,7 +316,8 @@ async fn migrate_threepids(
|
311 | 316 | .into_extract_localpart(synapse_user_id.clone())?
|
312 | 317 | .to_owned();
|
313 | 318 | let Some(user_infos) = state.users.get(username.as_str()).copied() else {
|
314 |
| - if is_likely_appservice(&username) { |
| 319 | + if true || is_likely_appservice(&username) { |
| 320 | + // HACK can we do anything better |
315 | 321 | continue;
|
316 | 322 | }
|
317 | 323 | return Err(Error::MissingUserFromDependentTable {
|
@@ -396,7 +402,8 @@ async fn migrate_external_ids(
|
396 | 402 | .into_extract_localpart(synapse_user_id.clone())?
|
397 | 403 | .to_owned();
|
398 | 404 | let Some(user_infos) = state.users.get(username.as_str()).copied() else {
|
399 |
| - if is_likely_appservice(&username) { |
| 405 | + if true || is_likely_appservice(&username) { |
| 406 | + // HACK can we do anything better |
400 | 407 | continue;
|
401 | 408 | }
|
402 | 409 | return Err(Error::MissingUserFromDependentTable {
|
@@ -482,7 +489,8 @@ async fn migrate_devices(
|
482 | 489 | .into_extract_localpart(synapse_user_id.clone())?
|
483 | 490 | .to_owned();
|
484 | 491 | let Some(user_infos) = state.users.get(username.as_str()).copied() else {
|
485 |
| - if is_likely_appservice(&username) { |
| 492 | + if true || is_likely_appservice(&username) { |
| 493 | + // HACK can we do anything better |
486 | 494 | continue;
|
487 | 495 | }
|
488 | 496 | return Err(Error::MissingUserFromDependentTable {
|
@@ -585,7 +593,8 @@ async fn migrate_unrefreshable_access_tokens(
|
585 | 593 | .into_extract_localpart(synapse_user_id.clone())?
|
586 | 594 | .to_owned();
|
587 | 595 | let Some(user_infos) = state.users.get(username.as_str()).copied() else {
|
588 |
| - if is_likely_appservice(&username) { |
| 596 | + if true || is_likely_appservice(&username) { |
| 597 | + // HACK can we do anything better |
589 | 598 | continue;
|
590 | 599 | }
|
591 | 600 | return Err(Error::MissingUserFromDependentTable {
|
@@ -706,7 +715,8 @@ async fn migrate_refreshable_token_pairs(
|
706 | 715 | .into_extract_localpart(synapse_user_id.clone())?
|
707 | 716 | .to_owned();
|
708 | 717 | let Some(user_infos) = state.users.get(username.as_str()).copied() else {
|
709 |
| - if is_likely_appservice(&username) { |
| 718 | + if true || is_likely_appservice(&username) { |
| 719 | + // HACK can we do anything better |
710 | 720 | continue;
|
711 | 721 | }
|
712 | 722 | return Err(Error::MissingUserFromDependentTable {
|
|
0 commit comments