You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-08-13 19:42:25 +03:00
oooooooops... let's pretend nobody saw this
This commit is contained in:
@@ -197,7 +197,7 @@ MatrixClient.prototype.getIdentityServerUrl = function() {
|
|||||||
*/
|
*/
|
||||||
MatrixClient.prototype.getDomain = function() {
|
MatrixClient.prototype.getDomain = function() {
|
||||||
if (this.credentials && this.credentials.userId) {
|
if (this.credentials && this.credentials.userId) {
|
||||||
return this.credentials.userId.split(':')[0];
|
return this.credentials.userId.replace(/^.*?:/, '');
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user