fix line-length and copyright header

This commit is contained in:
Michael Telatynski 2017-08-03 01:05:05 +01:00
parent 131d1c74c9
commit 9ab30b7b17
No known key found for this signature in database
GPG key ID: 3F879DA5AD802A5E

View file

@ -1,5 +1,5 @@
/* /*
Copyright 2017 OpenMarket Ltd Copyright 2017 Michael Telatynski <7t3chguy@gmail.com>
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.
@ -97,7 +97,9 @@ class SendCustomStateEvent extends React.Component {
async _send() { async _send() {
try { try {
const content = JSON.parse(this.refs.evContent.value); const content = JSON.parse(this.refs.evContent.value);
await MatrixClientPeg.get().sendStateEvent(this.refs.roomId.value, this.refs.eventType.value, content, this.refs.stateKey.value); await MatrixClientPeg.get().sendStateEvent(this.refs.roomId.value, this.refs.eventType.value, content,
this.refs.stateKey.value);
this.props.onFinished(true); this.props.onFinished(true);
} catch (e) { } catch (e) {
this.props.onFinished(false); this.props.onFinished(false);
@ -207,7 +209,9 @@ class RoomStateExplorer extends React.Component {
if (keys.length > 1) { if (keys.length > 1) {
rows.push(<button key={evType} onClick={this.browseEventType(evType)}>{evType}</button>); rows.push(<button key={evType} onClick={this.browseEventType(evType)}>{evType}</button>);
} else if (keys.length === 1) { } else if (keys.length === 1) {
rows.push(<button key={evType} onClick={this.onViewSourceClick(stateGroup[keys[0]])}>{evType}</button>); rows.push(
<button key={evType} onClick={this.onViewSourceClick(stateGroup[keys[0]])}>{evType}</button>
);
} }
}); });
} else { } else {