From f2dc7728a557f72554335cb70ead96e4d92314f0 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Mon, 15 Mar 2021 14:36:38 +0100 Subject: [PATCH] notifyRoomKey was a better name --- src/matrix/e2ee/RoomEncryption.js | 2 +- src/matrix/room/Room.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/matrix/e2ee/RoomEncryption.js b/src/matrix/e2ee/RoomEncryption.js index 95e6c579..1f6365a4 100644 --- a/src/matrix/e2ee/RoomEncryption.js +++ b/src/matrix/e2ee/RoomEncryption.js @@ -230,7 +230,7 @@ export class RoomEncryption { roomKey.dispose(); } if (keyIsBestOne) { - await this._room.retryDecryption(roomKey, retryEventIds || []); + await this._room.notifyRoomKey(roomKey, retryEventIds || []); } } } else if (session?.algorithm) { diff --git a/src/matrix/room/Room.js b/src/matrix/room/Room.js index 605af83d..d3d04c93 100644 --- a/src/matrix/room/Room.js +++ b/src/matrix/room/Room.js @@ -81,7 +81,7 @@ export class Room extends EventEmitter { * @param {Array} eventIds any event ids that should be retried. There might be more in the timeline though for this key. * @return {Promise} */ - async retryDecryption(roomKey, eventIds) { + async notifyRoomKey(roomKey, eventIds) { if (!this._roomEncryption) { return; }