Skip to content

Commit 7670955

Browse files
committed
HACK: ignore when we get threepids with the wrong casing
1 parent 3fe5a59 commit 7670955

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

crates/syn2mas/src/migration.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,13 @@ async fn migrate_threepids(
347347
if is_likely_appservice(&username) {
348348
continue;
349349
}
350+
351+
// HACK(matrix.org): we seem to have many threepids for unknown users
352+
if state.users.contains_key(username.to_lowercase().as_str()) {
353+
tracing::warn!(mxid = %synapse_user_id, "Threepid found in the database matching an MXID with the wrong casing");
354+
continue;
355+
}
356+
350357
return Err(Error::MissingUserFromDependentTable {
351358
table: "user_threepids".to_owned(),
352359
user: synapse_user_id,

0 commit comments

Comments
 (0)