This repository was archived by the owner on Sep 11, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
src/components/structures Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -383,7 +383,7 @@ module.exports = React.createClass({
383
383
384
384
MatrixClientPeg . get ( ) . leave ( payload . room_id ) . done ( ( ) => {
385
385
modal . close ( ) ;
386
- if ( this . currentRoomId === payload . room_id ) {
386
+ if ( this . state . currentRoomId === payload . room_id ) {
387
387
dis . dispatch ( { action : 'view_next_room' } ) ;
388
388
}
389
389
} , ( err ) => {
Original file line number Diff line number Diff line change @@ -1463,7 +1463,7 @@ module.exports = React.createClass({
1463
1463
1464
1464
// We have no room object for this room, only the ID.
1465
1465
// We've got to this room by following a link, possibly a third party invite.
1466
- var room_alias = this . state . room_alias ;
1466
+ const roomAlias = this . state . roomAlias ;
1467
1467
return (
1468
1468
< div className = "mx_RoomView" >
1469
1469
< RoomHeader ref = "header"
@@ -1476,7 +1476,7 @@ module.exports = React.createClass({
1476
1476
onForgetClick = { this . onForgetClick }
1477
1477
onRejectClick = { this . onRejectThreepidInviteButtonClicked }
1478
1478
canPreview = { false } error = { this . state . roomLoadError }
1479
- roomAlias = { room_alias }
1479
+ roomAlias = { roomAlias }
1480
1480
spinner = { previewBarSpinner }
1481
1481
inviterName = { inviterName }
1482
1482
invitedEmail = { invitedEmail }
You can’t perform that action at this time.
0 commit comments