let -> const

pull/21833/head
Travis Ralston 2019-04-10 15:34:06 -06:00
parent 15e8ce7a7f
commit 64423e1f7d
1 changed files with 2 additions and 2 deletions

View File

@ -44,9 +44,9 @@ export default class AdvancedRoomSettingsTab extends React.Component {
room.getRecommendedVersion().then((v) => {
const tombstone = room.currentState.getStateEvents("m.room.tombstone", "");
let additionalStateChanges = {};
const additionalStateChanges = {};
const createEvent = room.currentState.getStateEvents("m.room.create", "");
let predecessor = createEvent ? createEvent.getContent().predecessor : null;
const predecessor = createEvent ? createEvent.getContent().predecessor : null;
if (predecessor && predecessor.room_id) {
additionalStateChanges['oldRoomId'] = predecessor.room_id;
additionalStateChanges['oldEventId'] = predecessor.event_id;