mirror of https://github.com/vector-im/riot-web
let -> const
parent
15e8ce7a7f
commit
64423e1f7d
|
@ -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 New Issue