diff --git a/apps/meteor/app/e2e/client/rocketchat.e2e.room.js b/apps/meteor/app/e2e/client/rocketchat.e2e.room.js index e0793282a3a5..c848c5ca1904 100644 --- a/apps/meteor/app/e2e/client/rocketchat.e2e.room.js +++ b/apps/meteor/app/e2e/client/rocketchat.e2e.room.js @@ -79,8 +79,8 @@ export class E2ERoom extends Emitter { this.roomKeyId = room.e2eKeyId; this.once(E2ERoomState.READY, async () => { - await this.decryptOldRoomKeys() - return this.decryptPendingMessages() + await this.decryptOldRoomKeys(); + return this.decryptPendingMessages(); }); this.once(E2ERoomState.READY, () => this.decryptSubscription()); this.on('STATE_CHANGED', (prev) => { diff --git a/apps/meteor/client/hooks/roomActions/useE2EERoomKeyResetAction.ts b/apps/meteor/client/hooks/roomActions/useE2EERoomKeyResetAction.ts index 55c30e2313e2..9c9d88c489af 100644 --- a/apps/meteor/client/hooks/roomActions/useE2EERoomKeyResetAction.ts +++ b/apps/meteor/client/hooks/roomActions/useE2EERoomKeyResetAction.ts @@ -40,7 +40,7 @@ export const useE2EEResetRoomKeyRoomAction = () => { return; } - const { e2eKey, e2eKeyId } = await e2eRoom.resetRoomKey() ?? {}; + const { e2eKey, e2eKeyId } = (await e2eRoom.resetRoomKey()) ?? {}; if (!e2eKey) { throw new Error('cannot reset room key');