Merge pull request #355 from w3irdrobot/clear-unread-icon-header

Remove unread message dot when messages all read
This commit is contained in:
Kieran 2023-02-25 10:10:13 +00:00 committed by GitHub
commit 37ab7cdfce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 3 deletions

View File

@ -29,8 +29,17 @@ export default function Layout() {
const [show, setShow] = useState(false);
const dispatch = useDispatch();
const navigate = useNavigate();
const { loggedOut, publicKey, relays, latestNotification, readNotifications, dms, preferences, newUserKey } =
useSelector((s: RootState) => s.login);
const {
loggedOut,
publicKey,
relays,
latestNotification,
readNotifications,
dms,
preferences,
newUserKey,
dmInteraction,
} = useSelector((s: RootState) => s.login);
const { isMuted } = useModeration();
const [pageClass, setPageClass] = useState("page");
const pub = useEventPublisher();
@ -66,7 +75,7 @@ export default function Layout() {
publicKey
)
: 0,
[dms, publicKey]
[dms, publicKey, dmInteraction]
);
useEffect(() => {