Reconstruct previous comment state more accurately

This commit is contained in:
Chi Vinh Le
2018-01-25 22:03:37 +01:00
parent 426025f8c2
commit ce25cfb159
7 changed files with 153 additions and 87 deletions
@@ -39,27 +39,28 @@ class ModIndicatorSubscription extends React.Component {
}
}
const fields = `
status
actions {
__typename
created_at
}
status_history {
type
assigned_by {
id
}
created_at
}
updated_at
created_at
`;
const COMMENT_FEATURED_SUBSCRIPTION = gql`
subscription TalkFeaturedComments_Indicator_CommentFeatured {
commentFeatured {
comment {
status
actions {
__typename
... on FlagAction {
reason
}
user {
id
role
}
}
status_history {
type
assigned_by {
id
}
}
${fields}
}
}
}
@@ -69,23 +70,7 @@ const COMMENT_UNFEATURED_SUBSCRIPTION = gql`
subscription TalkFeaturedComments_Indicator_CommentUnfeatured {
commentUnfeatured {
comment {
status
actions {
__typename
... on FlagAction {
reason
}
user {
id
role
}
}
status_history {
type
assigned_by {
id
}
}
${fields}
}
}
}