Improe chat response handling for archive/tagging.

This commit is contained in:
Patrick Fic
2021-12-20 14:46:57 -08:00
parent b8e7c8f341
commit 76a00794f1
6 changed files with 74 additions and 37 deletions

View File

@@ -42,6 +42,7 @@ export const CONVERSATION_LIST_QUERY = gql`
id
updated_at
unreadcnt
archived
messages_aggregate(
where: { read: { _eq: false }, isoutbound: { _eq: false } }
) {
@@ -131,6 +132,7 @@ export const TOGGLE_CONVERSATION_ARCHIVE = gql`
_set: { archived: $archived }
) {
archived
id
}
}
`;

View File

@@ -9,6 +9,20 @@ export const INSERT_CONVERSATION_TAG = gql`
returning {
jobid
conversationid
id
conversation {
id
job_conversations {
id
jobid
conversationid
job {
ownr_fn
ownr_ln
ownr_co_nm
}
}
}
}
}
}