From c46d0064fcd33b175fa71e95aab747bef587aa04 Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Fri, 14 Jul 2023 14:50:43 +0200 Subject: [PATCH] unread rooms query in chat notification --- .../ChatNotificationMenu.vue | 18 +++++++++++++++++- webapp/graphql/Rooms.js | 8 ++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/webapp/components/ChatNotificationMenu/ChatNotificationMenu.vue b/webapp/components/ChatNotificationMenu/ChatNotificationMenu.vue index fcd93ee48..016410216 100644 --- a/webapp/components/ChatNotificationMenu/ChatNotificationMenu.vue +++ b/webapp/components/ChatNotificationMenu/ChatNotificationMenu.vue @@ -8,18 +8,34 @@ placement: 'bottom-start', }" > - + diff --git a/webapp/graphql/Rooms.js b/webapp/graphql/Rooms.js index e28702f77..c659ba85c 100644 --- a/webapp/graphql/Rooms.js +++ b/webapp/graphql/Rooms.js @@ -27,3 +27,11 @@ export const createRoom = () => gql` } } ` + +export const unreadRoomsQuery = () => { + return gql` + query { + UnreadRooms + } + ` +}