Skip to content

Commit b1e49df

Browse files
committed
HACK: ignore when we get threepids with the wrong casing
1 parent be1d591 commit b1e49df

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

crates/syn2mas/src/migration.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,12 @@ async fn migrate_threepids(
367367
continue;
368368
};
369369
let Some(user_infos) = state.users.get(username.as_str()).copied() else {
370+
// HACK(matrix.org): we seem to have many threepids for unknown users
371+
if state.users.contains_key(username.to_lowercase().as_str()) {
372+
tracing::warn!(mxid = %synapse_user_id, "Threepid found in the database matching an MXID with the wrong casing");
373+
continue;
374+
}
375+
370376
return Err(Error::MissingUserFromDependentTable {
371377
table: "user_threepids".to_owned(),
372378
user: synapse_user_id,

0 commit comments

Comments
 (0)