Merge branch 'develop' into luke/fix-event-id-state

Conflicts:
	src/components/structures/MatrixChat.js
This commit is contained in:
Luke Barnard 2017-06-08 14:33:58 +01:00
commit ea97d16aa2
13 changed files with 490 additions and 54 deletions

View file

@ -625,8 +625,15 @@ module.exports = React.createClass({
autoJoin: roomInfo.auto_join,
};
if (!roomInfo.room_alias) {
newState.currentRoomId = roomInfo.room_id;
if (roomInfo.room_alias) {
console.log(
`Switching to room alias ${roomInfo.room_alias} at event ` +
roomInfo.event_id,
);
} else {
console.log(`Switching to room id ${roomInfo.room_id} at event ` +
roomInfo.event_id,
);
}
// Wait for the first sync to complete so that if a room does have an alias,