This commit is contained in:
Matteo Pagliazzi
2013-11-04 15:17:09 +01:00
parent f467dcb3c9
commit 774ded9fb2
3 changed files with 7 additions and 8 deletions
-3
View File
@@ -210,9 +210,6 @@ api.postChat = function(req, res, next) {
timestamp: +(new Date)
};
// workaround for preventing duplicate chat messages. Real solution is to prevent <ENTER> between sends on the client
if (group.chat[0].uuid == message.uuid && group.chat[0].text == message.text) return res.json(group);
group.chat.unshift(message);
group.chat.splice(200);