You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-07 10:46:24 +03:00
use getDomain()
This commit is contained in:
@@ -117,8 +117,7 @@ var commands = {
|
|||||||
return reject("Usage: /join #alias:domain");
|
return reject("Usage: /join #alias:domain");
|
||||||
}
|
}
|
||||||
if (!room_alias.match(/:/)) {
|
if (!room_alias.match(/:/)) {
|
||||||
var domain = MatrixClientPeg.get().credentials.userId.replace(/^.*:/, '');
|
room_alias += ':' + MatrixClientPeg.get().getDomain();
|
||||||
room_alias += ':' + domain;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Try to find a room with this alias
|
// Try to find a room with this alias
|
||||||
@@ -164,8 +163,7 @@ var commands = {
|
|||||||
return reject("Usage: /part [#alias:domain]");
|
return reject("Usage: /part [#alias:domain]");
|
||||||
}
|
}
|
||||||
if (!room_alias.match(/:/)) {
|
if (!room_alias.match(/:/)) {
|
||||||
var domain = MatrixClientPeg.get().credentials.userId.replace(/^.*:/, '');
|
room_alias += ':' + MatrixClientPeg.get().getDomain();
|
||||||
room_alias += ':' + domain;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Try to find a room with this alias
|
// Try to find a room with this alias
|
||||||
|
|||||||
@@ -251,7 +251,7 @@ module.exports = React.createClass({
|
|||||||
var UserSelector = sdk.getComponent("elements.UserSelector");
|
var UserSelector = sdk.getComponent("elements.UserSelector");
|
||||||
var RoomHeader = sdk.getComponent("rooms.RoomHeader");
|
var RoomHeader = sdk.getComponent("rooms.RoomHeader");
|
||||||
|
|
||||||
var domain = MatrixClientPeg.get().credentials.userId.replace(/^.*:/, '');
|
var domain = MatrixClientPeg.get().getDomain();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="mx_CreateRoom">
|
<div className="mx_CreateRoom">
|
||||||
|
|||||||
Reference in New Issue
Block a user