+ {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 = ({