From 5f2e2efce6afbc6372295986aeb3d9a195987268 Mon Sep 17 00:00:00 2001 From: David Baker Date: Thu, 5 Jul 2018 18:22:05 +0100 Subject: [PATCH] Revert 8b64ddc for MatrixActionCreators As it wasn't used in the end --- src/actions/MatrixActionCreators.js | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/actions/MatrixActionCreators.js b/src/actions/MatrixActionCreators.js index d8c315f505..6e1d52a88f 100644 --- a/src/actions/MatrixActionCreators.js +++ b/src/actions/MatrixActionCreators.js @@ -183,20 +183,6 @@ function createEventDecryptedAction(matrixClient, event) { return { action: 'MatrixActions.Event.decrypted', event }; } -/** - * Create a MatrixActions.RoomState.vents action that represents - * a MatrixClient `RoomState.events` matrix event, emitted when the - * state events in a room change. - * - * @param {MatrixClient} matrixClient the matrix client. - * @param {MatrixEvent} event matrix event which caused this event to fire. - * @param {RoomState} state room state whose RoomState.events dictionary was updated. - * @returns {EventDecryptedAction} an action of type `MatrixActions.Event.decrypted`. - */ -function createRoomStateEventsAction(matrixClient, event, state) { - return { action: 'MatrixActions.RoomState.events', event, state }; -} - /** * This object is responsible for dispatching actions when certain events are emitted by * the given MatrixClient. @@ -218,7 +204,6 @@ export default { this._addMatrixClientListener(matrixClient, 'Room.timeline', createRoomTimelineAction); this._addMatrixClientListener(matrixClient, 'RoomMember.membership', createRoomMembershipAction); this._addMatrixClientListener(matrixClient, 'Event.decrypted', createEventDecryptedAction); - this._addMatrixClientListener(matrixClient, 'RoomState.events', createRoomStateEventsAction); }, /**