You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-08 21:42:24 +03:00
set state in ctor
This commit is contained in:
@@ -27,13 +27,14 @@ export default class MessageEditHistoryDialog extends React.Component {
|
|||||||
mxEvent: PropTypes.object.isRequired,
|
mxEvent: PropTypes.object.isRequired,
|
||||||
};
|
};
|
||||||
|
|
||||||
componentWillMount() {
|
constructor(props) {
|
||||||
this.setState({
|
super(props);
|
||||||
|
this.state = {
|
||||||
events: [],
|
events: [],
|
||||||
nextBatch: null,
|
nextBatch: null,
|
||||||
isLoading: true,
|
isLoading: true,
|
||||||
isTwelveHour: SettingsStore.getValue("showTwelveHourTimestamps"),
|
isTwelveHour: SettingsStore.getValue("showTwelveHourTimestamps"),
|
||||||
});
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
loadMoreEdits = async (backwards) => {
|
loadMoreEdits = async (backwards) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user