yet more horrifically strict linting :/
This commit is contained in:
parent
635996c083
commit
1d75d9e90d
2 changed files with 14 additions and 9 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue