Skip to content

Commit

Permalink
Merge pull request #1029 from glific/bug/collection-subscription
Browse files Browse the repository at this point in the history
Bug fixed for collection messages
  • Loading branch information
DigneshGujarathi authored Feb 18, 2021
2 parents 7d7a396 + 9c9225c commit 4b9a7c2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,11 @@ const ChatConversation: React.SFC<ChatConversationProps> = (props) => {
onClick={() => {
if (props.onClick) props.onClick(index);
setSearchOffset(client, props.messageNumber);
markAsRead({
variables: { contactId: contactId.toString() },
});
if (entityType === 'contact') {
markAsRead({
variables: { contactId: contactId.toString() },
});
}
}}
to={redirectURL}
>
Expand Down
1 change: 1 addition & 0 deletions src/graphql/subscriptions/Chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ export const COLLECTION_SENT_SUBSCRIPTION = gql`
body
flow
type
isRead
groupId
location {
latitude
Expand Down

0 comments on commit 4b9a7c2

Please sign in to comment.