You've already forked element-web
mirror of
https://github.com/element-hq/element-web.git
synced 2025-11-29 21:23:11 +03:00
fixed issue vector-im/vector-web 1079
This commit is contained in:
@@ -589,7 +589,16 @@ module.exports = React.createClass({
|
||||
var theAlias = MatrixTools.getCanonicalAliasForRoom(room);
|
||||
if (theAlias) presentedId = theAlias;
|
||||
}
|
||||
self.notifyNewScreen('room/'+presentedId);
|
||||
|
||||
if (typeof presentedId != 'undefined') {
|
||||
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'});
|
||||
} else {
|
||||
self.setState({ready: true});
|
||||
|
||||
Reference in New Issue
Block a user