From 5942d135b3a4f11d26bee8ba0acf71cc9d9d8392 Mon Sep 17 00:00:00 2001 From: Vlad Stan Date: Thu, 30 Mar 2023 11:36:28 +0300 Subject: [PATCH] feat: show unread count --- static/components/direct-messages/direct-messages.html | 5 ++++- static/components/direct-messages/direct-messages.js | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/static/components/direct-messages/direct-messages.html b/static/components/direct-messages/direct-messages.html index 7a91447..5f74b37 100644 --- a/static/components/direct-messages/direct-messages.html +++ b/static/components/direct-messages/direct-messages.html @@ -2,9 +2,12 @@
-
+
Messages
+
+   new +
c.unread_messages).length } catch (error) { LNbits.utils.notifyApiError(error) } @@ -86,6 +88,7 @@ async function directMessages(path) { }, selectActiveCustomer: async function () { await this.getDirectMessages(this.activePublicKey) + await this.getCustomers() }, focusOnChatBox: function (index) { setTimeout(() => {