mirror of
https://git.sr.ht/~emerson/reflectionircd
synced 2025-04-13 09:59:52 +00:00
fix bug where mxids can have spaces
This commit is contained in:
parent
d4e3137d93
commit
159846664c
1 changed files with 1 additions and 1 deletions
|
@ -151,7 +151,7 @@ export class Server {
|
|||
if (maybeMatrixUser) {
|
||||
return maybeMatrixUser;
|
||||
}
|
||||
const localPart = mxid.split(":")[0].substring(1)
|
||||
const localPart = mxid.split(":")[0].substring(1).replace(' ', '-20');
|
||||
if (!this.nickToMatrixUser.has(localPart)) {
|
||||
const newMatrixUser = new MatrixUser(mxid, localPart);
|
||||
this.matrixUsers.set(mxid, newMatrixUser);
|
||||
|
|
Loading…
Add table
Reference in a new issue