From 033630e8e39ee96ea08abc0a1de42628fbf5677b Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Thu, 16 Mar 2023 16:55:30 +0100 Subject: [PATCH] add group type for mark notifications as read --- webapp/graphql/User.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/webapp/graphql/User.js b/webapp/graphql/User.js index 1432cd31c..f7fd3c940 100644 --- a/webapp/graphql/User.js +++ b/webapp/graphql/User.js @@ -163,6 +163,7 @@ export const markAsReadMutation = (_i18n) => { ${userFragment} ${commentFragment} ${postFragment} + ${groupFragment} mutation ($id: ID!) { markAsRead(id: $id) { @@ -188,6 +189,9 @@ export const markAsReadMutation = (_i18n) => { } } } + ... on Group { + ...group + } } } } @@ -199,6 +203,7 @@ export const markAllAsReadMutation = (_i18n) => { ${userFragment} ${commentFragment} ${postFragment} + ${groupFragment} mutation { markAllAsRead { @@ -224,6 +229,9 @@ export const markAllAsReadMutation = (_i18n) => { } } } + ... on Group { + ...group + } } } }