diff --git a/src/messaging/edit.js b/src/messaging/edit.js index add728c416..22a82a0d50 100644 --- a/src/messaging/edit.js +++ b/src/messaging/edit.js @@ -8,6 +8,7 @@ const sockets = require('../socket.io'); module.exports = function (Messaging) { Messaging.editMessage = async (uid, mid, roomId, content) => { + await Messaging.checkContent(content); const raw = await Messaging.getMessageField(mid, 'content'); if (raw === content) { return;