groupChatReceived webhook fix (#10802)

* Moved sendGroupChatReceivedWebhooks to group.sendChat function.

* Added test for new functionality.
This commit is contained in:
Nathanael Farley
2018-11-17 09:48:41 +00:00
committed by Matteo Pagliazzi
parent 9a3cdb5deb
commit ff81e55839
3 changed files with 60 additions and 2 deletions

View File

@@ -190,8 +190,6 @@ api.postChat = {
} else {
res.respond(200, {message: newChatMessage});
}
group.sendGroupChatReceivedWebhooks(newChatMessage);
},
};