Fix annoying persistent chat notifications

This commit is contained in:
Jonathan Staab 2023-02-08 09:34:08 -06:00
parent 57451f120a
commit ede641fc15

View File

@ -21,7 +21,7 @@
const interval = setInterval(() => {
// TODO notifications for channel messages
if (room.type === 'npub') {
const mostRecent = $mostRecentByPubkey[room.pubkey] || Infinity
const mostRecent = $mostRecentByPubkey[room.pubkey] || 0
const lastChecked = $lastCheckedByPubkey[room.pubkey] || 0
// Include a cut-off since we lose read receipts every log out