mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46:40 +07:00
fixed last seen message bug
This commit is contained in:
parent
b064c88943
commit
0eae79ec08
3 changed files with 9 additions and 9 deletions
|
@ -56,9 +56,9 @@ const NotificationsUnconnected: FC<IProps> = ({
|
|||
const hideList = useCallback(() => setVisible(false), [setVisible]);
|
||||
|
||||
useEffect(() => {
|
||||
if (!visible || !has_new) return;
|
||||
authSetLastSeenMessages(new Date().toISOString());
|
||||
}, [visible]);
|
||||
if (!visible || !has_new || !last) return;
|
||||
authSetLastSeenMessages(last);
|
||||
}, [visible, last]);
|
||||
|
||||
return (
|
||||
<div
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue