Skip to content

Commit 7263bca

Browse files
committed
Ignore colons in localparts when importing users
1 parent fdfcfe0 commit 7263bca

File tree

1 file changed

+1
-1
lines changed
  • crates/syn2mas/src/synapse_reader

1 file changed

+1
-1
lines changed

crates/syn2mas/src/synapse_reader/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ impl FullUserId {
7373
return Err(ExtractLocalpartError::NoAtSigil);
7474
};
7575

76-
let Some((localpart, server_name)) = without_sigil.split_once(':') else {
76+
let Some((localpart, server_name)) = without_sigil.rsplit_once(':') else {
7777
return Err(ExtractLocalpartError::NoSeparator);
7878
};
7979

0 commit comments

Comments
 (0)