-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 [BUG] - <Increase bg blur when group/chat is encrypted> #1312
🐛 [BUG] - <Increase bg blur when group/chat is encrypted> #1312
Conversation
In the
Overall, the structure of the code seems fine, but it needs some corrections as mentioned above. // Corrected Code snippet
const ChatViewListCard = styled(Section)<IThemeProps>`
&::-webkit-scrollbar-thumb {
background: ${(props) => props.theme.scrollbarColor};
border-radius: 10px;
}
&::-webkit-scrollbar {
width: 5px;
overscroll-behavior: contain;
scroll-behavior: smooth;
}
`;
// Check initialization of position and theme.margin before using optional chaining
margins={position && theme.margin && position ? theme.margin.chatBubbleSenderMargin : theme.margin.chatBubbleReceiverMargin}
// Consider using a unique key instead of 'index' in the map function
{chatChunks.map((chat, index) => (
<Section
margin={position ? theme.margin.chatBubbleSenderMargin : theme.margin.chatBubbleReceiverMargin}
key={index}
>
<ChatViewBubble
decryptedMessagePayload={chat}
key={index}
isGroup={initialized.chatInfo?.meta?.group || false}
/>
</Section>
))}
// Validate the condition for rendering ActionRequestBubble component
{initialized.chatInfo && initialized.chatInfo.list === 'REQUESTS' && (
<ActionRequestBubble chatInfo={initialized.chatInfo} />
)} Please review these corrections and make changes accordingly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
After addressing the above issues, the code should be more structured and coherent. |
fix #1307
Increase bg blur when group/chat is encrypted
Fixes Issue
Changes proposed
Check List (Check all the applicable boxes)
Screenshots
Note to reviewers