From 929da30df8016926d1780ef0e04e42d366938eb6 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Sun, 27 May 2018 10:28:47 -0600 Subject: [PATCH] onEvent -> onStateEvent Signed-off-by: Travis Ralston --- src/components/views/rooms/PinnedEventsPanel.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/views/rooms/PinnedEventsPanel.js b/src/components/views/rooms/PinnedEventsPanel.js index e75cbea817..50c40142da 100644 --- a/src/components/views/rooms/PinnedEventsPanel.js +++ b/src/components/views/rooms/PinnedEventsPanel.js @@ -39,16 +39,16 @@ module.exports = React.createClass({ componentDidMount: function() { this._updatePinnedMessages(); - MatrixClientPeg.get().on("RoomState.events", this._onEvent); + MatrixClientPeg.get().on("RoomState.events", this._onStateEvent); }, componentWillUnmount: function() { if (MatrixClientPeg.get()) { - MatrixClientPeg.get().removeListener("RoomState.events", this._onEvent); + MatrixClientPeg.get().removeListener("RoomState.events", this._onStateEvent); } }, - _onEvent: function(ev) { + _onStateEvent: function(ev) { if (ev.getRoomId() === this.props.room.roomId && ev.getType() === "m.room.pinned_events") { this._updatePinnedMessages(); }