Skip to content

Commit 412f388

Browse files
reivilibresandhose
authored andcommitted
HACK disable more sanity
1 parent 150292b commit 412f388

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

crates/syn2mas/src/migration.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -311,10 +311,14 @@ async fn migrate_threepids(
311311
} = threepid_res.into_synapse("reading threepid")?;
312312
let created_at: DateTime<Utc> = added_at.into();
313313

314-
let username = synapse_user_id
314+
let Ok(username) = synapse_user_id
315315
.extract_localpart(&state.server_name)
316-
.into_extract_localpart(synapse_user_id.clone())?
317-
.to_owned();
316+
.into_extract_localpart(synapse_user_id.clone())
317+
.map(str::to_owned)
318+
else {
319+
// HACK matrix.org
320+
continue;
321+
};
318322
let Some(user_infos) = state.users.get(username.as_str()).copied() else {
319323
if true || is_likely_appservice(&username) {
320324
// HACK can we do anything better

0 commit comments

Comments
 (0)