From f31efe3e8759c29ac5faac1173e83a0d561f7886 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Fri, 4 Sep 2020 16:40:39 +0200 Subject: [PATCH] encode key with proper names --- src/matrix/storage/idb/stores/GroupSessionDecryptionStore.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/matrix/storage/idb/stores/GroupSessionDecryptionStore.js b/src/matrix/storage/idb/stores/GroupSessionDecryptionStore.js index 299b1520..99ededb9 100644 --- a/src/matrix/storage/idb/stores/GroupSessionDecryptionStore.js +++ b/src/matrix/storage/idb/stores/GroupSessionDecryptionStore.js @@ -14,8 +14,8 @@ See the License for the specific language governing permissions and limitations under the License. */ -function encodeKey(roomId, senderKey, sessionId) { - return `${roomId}|${senderKey}|${sessionId}`; +function encodeKey(roomId, sessionId, messageIndex) { + return `${roomId}|${sessionId}|${messageIndex}`; } export class GroupSessionDecryptionStore {