fixed issue vector-im/vector-web 1079
parent
b66ca74ede
commit
3c1312a9e6
|
@ -589,7 +589,16 @@ module.exports = React.createClass({
|
||||||
var theAlias = MatrixTools.getCanonicalAliasForRoom(room);
|
var theAlias = MatrixTools.getCanonicalAliasForRoom(room);
|
||||||
if (theAlias) presentedId = theAlias;
|
if (theAlias) presentedId = theAlias;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (typeof presentedId != 'undefined') {
|
||||||
self.notifyNewScreen('room/'+presentedId);
|
self.notifyNewScreen('room/'+presentedId);
|
||||||
|
} else {
|
||||||
|
// There is no information on presentedId
|
||||||
|
// so point user to fallback like /directory
|
||||||
|
// TODO(mebjas): confirm if this is correct fallback
|
||||||
|
self.notifyNewScreen('directory');
|
||||||
|
}
|
||||||
|
|
||||||
dis.dispatch({action: 'focus_composer'});
|
dis.dispatch({action: 'focus_composer'});
|
||||||
} else {
|
} else {
|
||||||
self.setState({ready: true});
|
self.setState({ready: true});
|
||||||
|
|
Loading…
Reference in New Issue