Skip to content

Commit

Permalink
fix: fixed scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
mishramonalisha76 committed Aug 24, 2023
2 parents 40d6cf3 + e63777f commit 82a4217
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,7 @@ const ChatViewListCard = styled(Section)<IThemeProps>`
`
filter: blur(12px);
`}
overscroll-behavior: contain;
`;

const Overlay = styled.div``;
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ export const ENCRYPTION_KEYS = {

export type EncryptionKeys = (typeof ENCRYPTION_KEYS)[keyof typeof ENCRYPTION_KEYS];


const EncryptionMessageContent = {
ENCRYPTED: {
IconComponent: <EncryptionIcon size="15" />,
Expand All @@ -29,6 +28,7 @@ const EncryptionMessageContent = {
IconComponent: <NoEncryptionIcon size="15" />,
text: `Messages in this group are not encrypted`,
},

};
export const EncryptionMessage = ({ id }: { id: EncryptionKeys}) => {
const theme = useContext(ThemeContext);
Expand Down
3 changes: 1 addition & 2 deletions packages/uiweb/src/lib/hooks/chat/usePushSendMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ const usePushSendMessage = () => {
const [error, setError] = useState<string>();
const [loading, setLoading] = useState<boolean>(false);

const { verificationSuccessfull, setVerificationSuccessfull, setVerified } =
useVerifyAccessControl();

const { pgpPrivateKey, env, account } = useChatData();

const sendMessage = useCallback(
Expand Down
3 changes: 3 additions & 0 deletions packages/uiweb/src/lib/hooks/chat/useVerifyAccessControl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@ interface VerifyAccessControlParams {
const useVerifyAccessControl = () => {
const [error, setError] = useState<string>();
const [loading, setLoading] = useState<boolean>(false);
console.log('in hereeeeeee');
const [verificationSuccessfull, setVerificationSuccessfull] =
useState<boolean>(true);
const [verified, setVerified] = useState<boolean>(false);

const { pgpPrivateKey, env, account } = useChatData();
console.log(verificationSuccessfull);

const verifyAccessControl = useCallback(
async (options: VerifyAccessControlParams) => {
Expand Down Expand Up @@ -51,6 +53,7 @@ const useVerifyAccessControl = () => {
},
[pgpPrivateKey, account, env]
);

return {
verifyAccessControl,
error,
Expand Down

0 comments on commit 82a4217

Please sign in to comment.