remove trace, add comment, ...

This commit is contained in:
Bruno Windels 2018-11-22 18:58:12 +00:00
parent 04bb13bb7b
commit 1810c17d24

View file

@ -837,8 +837,7 @@ export default React.createClass({
// room name and avatar from an invite email) // room name and avatar from an invite email)
_viewRoom: function(roomInfo) { _viewRoom: function(roomInfo) {
this.focusComposer = true; this.focusComposer = true;
console.log("!!! MatrixChat._viewRoom", roomInfo); console.log("!!! MatrixChat._viewRoom", roomInfo);
console.trace();
const newState = { const newState = {
currentRoomId: roomInfo.room_id || null, currentRoomId: roomInfo.room_id || null,
@ -887,6 +886,9 @@ export default React.createClass({
if (roomInfo.event_id && roomInfo.highlighted) { if (roomInfo.event_id && roomInfo.highlighted) {
presentedId += "/" + roomInfo.event_id; presentedId += "/" + roomInfo.event_id;
} }
// TODO: only emit this when we're not in grid mode?
this.notifyNewScreen('room/' + presentedId); this.notifyNewScreen('room/' + presentedId);
newState.ready = true; newState.ready = true;
this.setState(newState); this.setState(newState);