diff --git a/ts/receiver/closedGroups.ts b/ts/receiver/closedGroups.ts index 2f7305f85..a2a7f0c39 100644 --- a/ts/receiver/closedGroups.ts +++ b/ts/receiver/closedGroups.ts @@ -51,7 +51,7 @@ export async function getAllCachedECKeyPair(groupPubKey: string) { cacheOfClosedGroupKeyPairs.set(groupPubKey, keyPairsFound); } - return keyPairsFound; + return keyPairsFound.slice(); } /**