fix: htmlentity instead of url encoding for room rename system message

v1.18.x
Julian Lam 5 years ago
parent 9149db1fec
commit 9b8ac89e13

@ -183,7 +183,7 @@ module.exports = function (Messaging) {
}
await db.setObjectField('chat:room:' + payload.roomId, 'roomName', payload.newName);
await Messaging.addSystemMessage('room-rename, ' + payload.newName.replace(',', '%2C'), payload.uid, payload.roomId);
await Messaging.addSystemMessage('room-rename, ' + payload.newName.replace(',', ','), payload.uid, payload.roomId);
plugins.fireHook('action:chat.renameRoom', {
roomId: payload.roomId,

Loading…
Cancel
Save