added nonce to group resource

This commit is contained in:
2024-09-23 18:51:44 +03:00
parent a63295d309
commit 81959f6883
2 changed files with 99 additions and 71 deletions

View File

@@ -165,8 +165,8 @@ export function validateSecretKey(obj) {
return false;
}
// Check for messageKey and nonce properties
if (!value.hasOwnProperty("messageKey") || !value.hasOwnProperty("nonce")) {
// Check for messageKey
if (!value.hasOwnProperty("messageKey")) {
return false;
}
@@ -177,9 +177,6 @@ export function validateSecretKey(obj) {
) {
return false;
}
if (typeof value.nonce !== "string" || value.nonce.trim() === "") {
return false;
}
}
// If all checks passed, return true
@@ -2162,7 +2159,7 @@ export const Group = ({
</div>
);
};
return (
<>
<WebSocketActive