fix #1740
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user