Skip to content
This repository has been archived by the owner on Oct 11, 2022. It is now read-only.

Commit

Permalink
Merge pull request #3111 from withspectrum/fix-message-replies
Browse files Browse the repository at this point in the history
Fix quote replies
  • Loading branch information
brianlovin authored May 17, 2018
2 parents 26fc574 + 8f420fe commit eb1caf8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions api/mutations/message/addMessage.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export default requireAuth(async (_: any, args: Input, ctx: GraphQLContext) => {

if (message.parentId) {
const parent = await getMessage(message.parentId);
if (parent.threadId !== message.threadId)
if (parent.threadId !== message.threadId) {
trackQueue.add({
userId: user.id,
event: eventFailed,
Expand All @@ -137,7 +137,8 @@ export default requireAuth(async (_: any, args: Input, ctx: GraphQLContext) => {
},
});

return new UserError('You can only quote messages from the same thread.');
return new UserError('You can only quote messages from the same thread.');
}
}

// construct the shape of the object to be stored in the db
Expand Down

0 comments on commit eb1caf8

Please sign in to comment.