show group chats without secret key

This commit is contained in:
QuickMythril 2024-12-03 04:08:59 -05:00
parent 6ca1c6a578
commit c245454486
2 changed files with 5 additions and 3 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,8 +2487,7 @@ export const Group = ({
handleNewEncryptionNotification={ handleNewEncryptionNotification={
setNewEncryptionNotification setNewEncryptionNotification
} }
hide={groupSection !== "chat" || !secretKey || selectedDirect || newChat} hide={groupSection !== "chat" || selectedDirect || newChat}
hideView={!(desktopViewMode === 'chat' && selectedGroup)}
handleSecretKeyCreationInProgress={ handleSecretKeyCreationInProgress={
handleSecretKeyCreationInProgress handleSecretKeyCreationInProgress
} }
@ -2542,6 +2541,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>