Are you planning on proposing a NIP so that this could be a multi-client feature?
Iris now syncs notifications/lastOpened and chats/[pubkey]/lastOpened times between your devices over NIP33 tag-replaceable events. It's used to show the unseen dot.
I wrote a Path API that lets you do it very easily
```
path.set('notifications/lastOpened', lastOpenedTime)
path.get('notifications/lastOpened', (lastOpened) => {...})
```
It currently saves publicly, until I get the encryption to work. Don't worry, no one knows how to read it yet 😄
Code: https://github.com/irislib/iris-messenger/blob/master/src/js/lib/nostr-tools/path.ts
#[0] should I PR it to nostr-tools or iris-lib?

Discussion
No replies yet.