Skip to content

Commit 1c712ad

Browse files
committed
HACK: special case for :vector.im threepids
1 parent 1ff3c2f commit 1c712ad

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

crates/syn2mas/src/migration.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,11 @@ async fn migrate_threepids(
336336
.into_extract_localpart(synapse_user_id.clone())
337337
.map(str::to_owned)
338338
else {
339-
// HACK matrix.org
339+
// HACK(matrix.org): for some reason, m.org has threepids for the :vector.im
340+
// server. We skip them, and log for potential other servers.
341+
if !synapse_user_id.0.ends_with(":vector.im") {
342+
tracing::warn!("Unexpected MXID for threepid: {}", synapse_user_id);
343+
}
340344
continue;
341345
};
342346
let Some(user_infos) = state.users.get(username.as_str()).copied() else {

0 commit comments

Comments
 (0)