You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +03:00
Merge pull request #199 from mebjas/develop
fixed issue vector-im/vector-web 1079
This commit is contained in:
@@ -589,7 +589,15 @@ module.exports = React.createClass({
|
|||||||
var theAlias = MatrixTools.getCanonicalAliasForRoom(room);
|
var theAlias = MatrixTools.getCanonicalAliasForRoom(room);
|
||||||
if (theAlias) presentedId = theAlias;
|
if (theAlias) presentedId = theAlias;
|
||||||
}
|
}
|
||||||
self.notifyNewScreen('room/'+presentedId);
|
|
||||||
|
if (presentedId != undefined) {
|
||||||
|
self.notifyNewScreen('room/'+presentedId);
|
||||||
|
} else {
|
||||||
|
// There is no information on presentedId
|
||||||
|
// so point user to fallback like /directory
|
||||||
|
self.notifyNewScreen('directory');
|
||||||
|
}
|
||||||
|
|
||||||
dis.dispatch({action: 'focus_composer'});
|
dis.dispatch({action: 'focus_composer'});
|
||||||
} else {
|
} else {
|
||||||
self.setState({ready: true});
|
self.setState({ready: true});
|
||||||
|
|||||||
Reference in New Issue
Block a user