Skip to content

Commit 9ca7288

Browse files
reivilibresandhose
authored andcommitted
HACK disable more sanity
1 parent 0040dbd commit 9ca7288

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
@@ -330,10 +330,14 @@ async fn migrate_threepids(
330330
} = threepid_res.into_synapse("reading threepid")?;
331331
let created_at: DateTime<Utc> = added_at.into();
332332

333-
let username = synapse_user_id
333+
let Ok(username) = synapse_user_id
334334
.extract_localpart(server_name)
335-
.into_extract_localpart(synapse_user_id.clone())?
336-
.to_owned();
335+
.into_extract_localpart(synapse_user_id.clone())
336+
.map(str::to_owned)
337+
else {
338+
// HACK matrix.org
339+
continue;
340+
};
337341
let Some(user_id) = user_localparts_to_uuid.get(username.as_str()).copied() else {
338342
if true || is_likely_appservice(&username) {
339343
// HACK can we do anything better

0 commit comments

Comments
 (0)