feature/IO-3478-Mark-Conversation-Unread: Finished
This commit is contained in:
@@ -123,7 +123,7 @@ mutation RECEIVE_MESSAGE($msg: [messages_insert_input!]!) {
|
||||
|
||||
exports.INSERT_MESSAGE = `
|
||||
mutation INSERT_MESSAGE($msg: [messages_insert_input!]!, $conversationid: uuid!) {
|
||||
update_conversations_by_pk(pk_columns: {id: $conversationid}, _set: {archived: false}) {
|
||||
update_conversations_by_pk(pk_columns: { id: $conversationid }, _set: { archived: false }) {
|
||||
id
|
||||
archived
|
||||
}
|
||||
@@ -147,6 +147,7 @@ mutation INSERT_MESSAGE($msg: [messages_insert_input!]!, $conversationid: uuid!)
|
||||
image_path
|
||||
image
|
||||
isoutbound
|
||||
is_system
|
||||
msid
|
||||
read
|
||||
text
|
||||
|
||||
@@ -61,7 +61,8 @@ const send = async (req, res) => {
|
||||
isoutbound: true,
|
||||
userid: req.user.email,
|
||||
image: selectedMedia.length > 0,
|
||||
image_path: selectedMedia.length > 0 ? selectedMedia.map((i) => i.src) : []
|
||||
image_path: selectedMedia.length > 0 ? selectedMedia.map((i) => i.src) : [],
|
||||
is_system: false
|
||||
};
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user