From b0f833cc3f6b3ea2bd37d0cc46847db011999ede Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Thu, 29 Apr 2021 09:15:22 +0200 Subject: [PATCH 1/8] Add indicator of unread messages while in call When in a call and the sidebar is collapsed, whenever new unread messages arrive, a bubble will be displayed on top of the button that opens the sidebar. If a mention exists, the bubble will appear highlighted. Whenever a new unread message or new mention arrives while in a call with the sidebar closed, a notification will appear once. Signed-off-by: Vincent Petry Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com> --- src/components/TopBar/TopBar.vue | 54 +++++++++++++++++++++++++++++++- 1 file changed, 53 insertions(+), 1 deletion(-) diff --git a/src/components/TopBar/TopBar.vue b/src/components/TopBar/TopBar.vue index ce6b674613a..ba68b300e7b 100644 --- a/src/components/TopBar/TopBar.vue +++ b/src/components/TopBar/TopBar.vue @@ -129,13 +129,20 @@ @click="openSidebar" /> + + {{ unreadMessagesCounter }} +