fix(frontend): resolve inbox flickering issue

This commit is contained in:
yassinedorbozgithub 2025-05-31 16:43:47 +01:00
parent ef4c61b735
commit 8e22173ee1
2 changed files with 3 additions and 5 deletions

View File

@ -44,10 +44,8 @@ export const SubscribersList = (props: {
}, 400); }, 400);
useEffect(() => { useEffect(() => {
if (chat) { chat.setSubscriberId(subscriber);
chat.setSubscriberId(subscriber); }, [subscriber]);
}
}, [chat, subscriber]);
return ( return (
<> <>

View File

@ -49,7 +49,7 @@ export const Inbox = () => {
> >
<Grid item width="100%" height="100%" overflow="hidden"> <Grid item width="100%" height="100%" overflow="hidden">
<MainContainer style={{ height: "100%" }}> <MainContainer style={{ height: "100%" }}>
<Sidebar position="left"> <Sidebar position="left" style={{ flexBasis: "100%" }}>
<Grid paddingX={1} paddingTop={2} paddingBottom={1} mx={1}> <Grid paddingX={1} paddingTop={2} paddingBottom={1} mx={1}>
<FilterTextfield <FilterTextfield
onChange={onSearch} onChange={onSearch}