TSK-1341 Remove last view (#3115)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov
2023-04-29 22:46:13 +07:00
committed by GitHub
parent 9b04d366e3
commit ae8fcf8d62
41 changed files with 204 additions and 645 deletions
@@ -22,9 +22,8 @@
export let size: IconSize = 'small'
const notificationClient = NotificationClientImpl.getClient()
const lastViews = notificationClient.getLastViews()
$: lastView = $lastViews[object._id]
$: subscribed = lastView !== undefined && lastView !== -1
const store = notificationClient.docUpdatesStore
$: subscribed = $store.get(object._id) !== undefined
</script>
{#if subscribed}