Skip to content

Commit 1dbe2d3

Browse files
committed
HACK disable more sanity
1 parent b69e77c commit 1dbe2d3

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

327-
let username = synapse_user_id
327+
let Ok(username) = synapse_user_id
328328
.extract_localpart(server_name)
329-
.into_extract_localpart(synapse_user_id.clone())?
330-
.to_owned();
329+
.into_extract_localpart(synapse_user_id.clone())
330+
.map(str::to_owned)
331+
else {
332+
// HACK matrix.org
333+
continue;
334+
};
331335
let Some(user_id) = user_localparts_to_uuid.get(username.as_str()).copied() else {
332336
if true || is_likely_appservice(&username) {
333337
// HACK can we do anything better

0 commit comments

Comments
 (0)