Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 847c01b

Browse files
authored
Merge pull request #784 from matrix-org/luke/fix-non-existant-event-dialog-finish
Fix the onFinished for timeline pos dialog
2 parents 11a1c80 + fff83ba commit 847c01b

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

src/components/structures/MatrixChat.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -648,16 +648,6 @@ module.exports = React.createClass({
648648
if (room) {
649649
var theAlias = Rooms.getDisplayAliasForRoom(room);
650650
if (theAlias) presentedId = theAlias;
651-
652-
// No need to do this given RoomView triggers it itself...
653-
// var color_scheme_event = room.getAccountData("org.matrix.room.color_scheme");
654-
// var color_scheme = {};
655-
// if (color_scheme_event) {
656-
// color_scheme = color_scheme_event.getContent();
657-
// // XXX: we should validate the event
658-
// }
659-
// console.log("Tinter.tint from _viewRoom");
660-
// Tinter.tint(color_scheme.primary_color, color_scheme.secondary_color);
661651
}
662652

663653
if (room_info.event_id) {

src/components/structures/TimelinePanel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -819,7 +819,7 @@ var TimelinePanel = React.createClass({
819819
// go via the dispatcher so that the URL is updated
820820
dis.dispatch({
821821
action: 'view_room',
822-
room_id: this.props.timelineSet.roomId,
822+
room_id: this.props.timelineSet.room.roomId,
823823
});
824824
};
825825
}

0 commit comments

Comments
 (0)