yet more horrifically strict linting :/

This commit is contained in:
Matthew Hodgson 2017-10-15 01:47:11 +01:00
parent 635996c083
commit 1d75d9e90d
2 changed files with 14 additions and 9 deletions

View file

@ -47,7 +47,8 @@ module.exports = React.createClass({
const index = pinned.indexOf(this.props.mxEvent.getId());
if (index !== -1) {
pinned.splice(index, 1);
MatrixClientPeg.get().sendStateEvent(this.props.mxRoom.roomId, 'm.room.pinned_events', {pinned}, '').then(() => {
MatrixClientPeg.get().sendStateEvent(this.props.mxRoom.roomId, 'm.room.pinned_events', {pinned}, '')
.then(() => {
if (this.props.onUnpinned) this.props.onUnpinned();
});
} else if (this.props.onUnpinned) this.props.onUnpinned();