From 72c4293bc97820cc10630ff04bf9adb495ce66e8 Mon Sep 17 00:00:00 2001 From: "nico.benaz" <52411515+nbenaglia@users.noreply.github.com> Date: Mon, 21 Apr 2025 11:53:03 +0200 Subject: [PATCH] Remove curly braces --- src/components/Group/Group.tsx | 374 ++++++++++++++++----------------- 1 file changed, 184 insertions(+), 190 deletions(-) diff --git a/src/components/Group/Group.tsx b/src/components/Group/Group.tsx index bbd0455..e94579a 100644 --- a/src/components/Group/Group.tsx +++ b/src/components/Group/Group.tsx @@ -2235,152 +2235,151 @@ export const Group = ({ : '0px', }} > - { - - } + + - - {triedToFetchSecretKey && ( - + + {triedToFetchSecretKey && ( + + )} + {isPrivate && + firstSecretKeyInCreation && + triedToFetchSecretKey && + !secretKeyPublishDate && ( +
+ {' '} + + The group's first common encryption key is in the process + of creation. Please wait a few minutes for it to be + retrieved by the network. Checking every 2 minutes... + +
)} - {isPrivate && - firstSecretKeyInCreation && - triedToFetchSecretKey && - !secretKeyPublishDate && ( + {isPrivate && + !admins.includes(myAddress) && + !secretKey && + triedToFetchSecretKey ? ( + <> + {secretKeyPublishDate || + (!secretKeyPublishDate && !firstSecretKeyInCreation) ? (
{' '} - The group's first common encryption key is in the process - of creation. Please wait a few minutes for it to be - retrieved by the network. Checking every 2 minutes... + You are not part of the encrypted group of members. Wait + until an admin re-encrypts the keys. -
- )} - {isPrivate && - !admins.includes(myAddress) && - !secretKey && - triedToFetchSecretKey ? ( - <> - {secretKeyPublishDate || - (!secretKeyPublishDate && !firstSecretKeyInCreation) ? ( -
- {' '} - - You are not part of the encrypted group of members. Wait - until an admin re-encrypts the keys. - - - - - Only unencrypted messages will be displayed. - - - - - Try notifying an admin from the list of admins below: - - - {adminsWithNames.map((admin) => { - return ( - + + + Only unencrypted messages will be displayed. + + + + + Try notifying an admin from the list of admins below: + + + {adminsWithNames.map((admin) => { + return ( + + {admin?.name} + notifyAdmin(admin)} > - {admin?.name} - notifyAdmin(admin)} - > - Notify - - - ); - })} -
- ) : null} - + Notify + +
+ ); + })} + + ) : null} + ) : admins.includes(myAddress) && !secretKey && isPrivate && @@ -2520,65 +2519,60 @@ export const Group = ({
)} - - { - - } - { - - } - - { - - } + + + + + +