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 {