fix: editing chat messages does not go through content sanity checks

v1.18.x
Julian Lam 5 years ago
parent d6c619cf1a
commit 9a6b87d261

@ -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;

Loading…
Cancel
Save