diff --git a/package.json b/package.json index 4a8c6f6..867c2e9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "notificationapi-js-client-sdk", - "version": "4.6.0", + "version": "4.6.1", "description": "NotificationAPI client-side library for JavaScript", "keywords": [ "notificationapi", diff --git a/src/index.ts b/src/index.ts index 5f75818..aec7f68 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1040,7 +1040,8 @@ class NotificationAPIClient implements NotificationAPIClientInterface { if (!menuWasClicked) { notification.classList.remove('unseen'); - this.setInAppUnread(this.state.unread - 1); + /* istanbul ignore next */ + if (!n.seen) this.setInAppUnread(this.state.unread - 1); this.sendWSMessage({ route: 'inapp_web/unread_clear', payload: {