diff --git a/app/client/graphQL/entry.ts b/app/client/graphQL/entry.ts index 1408b639f8..241b8eb2f2 100644 --- a/app/client/graphQL/entry.ts +++ b/app/client/graphQL/entry.ts @@ -188,6 +188,7 @@ query ${QueryNames.QUERY_ENTRY} { } teamMembers(userId:"me") { deleteAt + schemeAdmin roles { id name @@ -221,6 +222,8 @@ query ${QueryNames.QUERY_CHANNELS}($teamId: String!, $perPage: Int!, $exclude: B msgCount msgCountRoot mentionCount + mentionCountRoot + schemeAdmin lastViewedAt notifyProps roles { @@ -254,6 +257,7 @@ query ${QueryNames.QUERY_CHANNELS}($teamId: String!, $perPage: Int!, $exclude: B sidebarCategories(userId:"me", teamId:$teamId, excludeTeam:$exclude) { displayName id + sortOrder sorting type muted @@ -271,6 +275,8 @@ query ${QueryNames.QUERY_CHANNELS_NEXT}($teamId: String!, $perPage: Int!, $exclu msgCount msgCountRoot mentionCount + mentionCountRoot + schemeAdmin lastViewedAt notifyProps roles { @@ -311,6 +317,8 @@ query ${QueryNames.QUERY_ALL_CHANNELS}($perPage: Int!){ msgCount msgCountRoot mentionCount + mentionCountRoot + schemeAdmin lastViewedAt notifyProps channel { @@ -346,6 +354,8 @@ query ${QueryNames.QUERY_ALL_CHANNELS_NEXT}($perPage: Int!, $cursor: String!) { msgCount msgCountRoot mentionCount + mentionCountRoot + schemeAdmin lastViewedAt notifyProps channel { diff --git a/app/utils/graphql.ts b/app/utils/graphql.ts index bbc31debe8..e6aaeb7c97 100644 --- a/app/utils/graphql.ts +++ b/app/utils/graphql.ts @@ -124,6 +124,7 @@ export const gqlToClientChannelMembership = (m: Partial, u last_update_at: m.lastUpdateAt || 0, last_viewed_at: m.lastViewedAt || 0, mention_count: m.mentionCount || 0, + mention_count_root: m.mentionCountRoot || 0, msg_count: m.msgCount || 0, msg_count_root: m.msgCountRoot || 0, notify_props: m.notifyProps || {},