publish: mark read on navigate

fixes #4207
This commit is contained in:
Tyler Brown Cifu Shuster 2021-01-08 09:48:55 -08:00
parent 71f16fc32b
commit f8b9f40d16

View File

@ -47,7 +47,7 @@ export function Note(props: NoteProps & RouteComponentProps) {
const noteId = bigInt(index[1]);
useEffect(() => {
api.hark.markEachAsRead(props.association, '/',`/${index[1]}/1/1`, 'note', 'publish');
}, [props.association]);
}, [props.association, props.note]);