Skip to content

Commit 1b34ae1

Browse files
committed
HACK: special case for :vector.im threepids
1 parent 86396a3 commit 1b34ae1

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
@@ -328,7 +328,11 @@ async fn migrate_threepids(
328328
.into_extract_localpart(synapse_user_id.clone())
329329
.map(str::to_owned)
330330
else {
331-
// HACK matrix.org
331+
// HACK(matrix.org): for some reason, m.org has threepids for the :vector.im
332+
// server. We skip them, and log for potential other servers.
333+
if !synapse_user_id.0.ends_with(":vector.im") {
334+
tracing::warn!("Unexpected MXID for threepid: {}", synapse_user_id);
335+
}
332336
continue;
333337
};
334338
let Some(user_infos) = state.users.get(username.as_str()).copied() else {

0 commit comments

Comments
 (0)