let -> const
This commit is contained in:
parent
15e8ce7a7f
commit
64423e1f7d
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue