From 5cfe4f0f461ed6e35a869bcbfc90ab8fc1ee77d0 Mon Sep 17 00:00:00 2001 From: Benoit Lavenier <benoit.lavenier@e-is.pro> Date: Mon, 14 Aug 2023 18:18:08 +0200 Subject: [PATCH] fix(notifications): Count only last unread messages/notifications, since last read messages/notifications, after first login --- www/plugins/es/js/services/message-services.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/plugins/es/js/services/message-services.js b/www/plugins/es/js/services/message-services.js index 7bb5c436..4da3ae86 100644 --- a/www/plugins/es/js/services/message-services.js +++ b/www/plugins/es/js/services/message-services.js @@ -86,7 +86,7 @@ angular.module('cesium.es.message.services', ['ngResource', 'cesium.platform', } function countUnreadMessages(options) { - if (typeof options === 'string') throw new Error('Invalid argument options: expected an object, but get a string!') + if (typeof options === 'string') throw new Error('Invalid argument options: expected an object, but get a string!'); options = options || {}; var wallet = options.wallet || (options.walletId && csWallet.children.get(options.walletId)) || csWallet; -- GitLab