Merge pull request #3 from QuickMythril/display-keyless-groups

Display keyless groups
This commit is contained in:
Phillip 2024-12-03 12:51:09 +02:00 committed by GitHub
commit 7ae422b10b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 2 deletions

View File

@ -182,7 +182,6 @@ const [messageSize, setMessageSize] = useState(0)
try { try {
if(!secretKeyRef.current){ if(!secretKeyRef.current){
checkForFirstSecretKeyNotification(encryptedMessages) checkForFirstSecretKeyNotification(encryptedMessages)
return
} }
return new Promise((res, rej)=> { return new Promise((res, rej)=> {
window.sendMessage("decryptSingle", { window.sendMessage("decryptSingle", {

View File

@ -2487,7 +2487,7 @@ export const Group = ({
handleNewEncryptionNotification={ handleNewEncryptionNotification={
setNewEncryptionNotification setNewEncryptionNotification
} }
hide={groupSection !== "chat" || !secretKey || selectedDirect || newChat} hide={groupSection !== "chat" || selectedDirect || newChat}
hideView={!(desktopViewMode === 'chat' && selectedGroup)} hideView={!(desktopViewMode === 'chat' && selectedGroup)}
handleSecretKeyCreationInProgress={ handleSecretKeyCreationInProgress={
handleSecretKeyCreationInProgress handleSecretKeyCreationInProgress
@ -2542,6 +2542,10 @@ export const Group = ({
Wait until an admin re-encrypts the keys. Wait until an admin re-encrypts the keys.
</Typography> </Typography>
<Spacer height="25px" /> <Spacer height="25px" />
<Typography>
<strong>Only unencrypted messages will be displayed.</strong>
</Typography>
<Spacer height="25px" />
<Typography> <Typography>
Try notifying an admin from the list of admins below: Try notifying an admin from the list of admins below:
</Typography> </Typography>