This commit is contained in:
PhilReact 2024-09-14 18:15:23 +03:00
parent 0e516e4ce4
commit 753ba200d4
2 changed files with 9 additions and 3 deletions

View File

@ -1461,7 +1461,7 @@ function App() {
}} }}
/> />
</Box> </Box>
{!isMobile && (
<> <>
<Spacer height="15px" /> <Spacer height="15px" />
<Box <Box
@ -1571,7 +1571,7 @@ function App() {
)} )}
</Box> </Box>
</> </>
)}
</> </>
)} )}
{/* {extState !== "not-authenticated" && ( {/* {extState !== "not-authenticated" && (

View File

@ -1357,6 +1357,7 @@ export const Group = ({
res(null); res(null);
}, 200); }, 200);
}); });
setSelectedDirect(null);
setGroupSection("announcement"); setGroupSection("announcement");
chrome?.runtime?.sendMessage({ chrome?.runtime?.sendMessage({
action: "addGroupNotificationTimestamp", action: "addGroupNotificationTimestamp",
@ -1378,6 +1379,7 @@ export const Group = ({
}, 200); }, 200);
}); });
setGroupSection("chat"); setGroupSection("chat");
setSelectedDirect(null);
if (selectedGroupRef.current) { if (selectedGroupRef.current) {
chrome?.runtime?.sendMessage({ chrome?.runtime?.sendMessage({
action: "addTimestampEnterChat", action: "addTimestampEnterChat",
@ -2238,6 +2240,7 @@ export const Group = ({
}} }}
onClick={() => { onClick={() => {
setGroupSection("forum"); setGroupSection("forum");
setSelectedDirect(null);
}} }}
> >
<ForumIcon <ForumIcon
@ -2440,7 +2443,10 @@ export const Group = ({
backgroundColor: groupSection === "forum" ? "white" : "black", // Focus state backgroundColor: groupSection === "forum" ? "white" : "black", // Focus state
}, },
}} }}
onClick={() => setGroupSection("forum")} onClick={() => {
setSelectedDirect(null);
setGroupSection("forum")
} }
> >
Forum Forum
</Button> </Button>