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

View File

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