From 099b5f96160d7ed8937135992a8b4a324ece9e1d Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Mon, 17 Aug 2020 00:52:24 +0300 Subject: [PATCH] Enable !edit and !delete by default --- CHANGELOG.md | 1 + src/data/cfg.jsdoc.js | 4 ++-- src/data/cfg.schema.json | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 88ef9c3..90a56ab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ Please report any bugs you encounter by [creating a GitHub issue](https://github * Added support for Node.js 14, dropped support for Node.js 10 and 11 * The supported versions are now 12, 13, and 14 * Added support for editing and deleting staff replies + * This is **enabled by default** * This can be disabled with the `allowStaffEdit` and `allowStaffDelete` options * Only the staff member who sent the reply can edit/delete it * New option `reactOnSeen` ([#398](https://github.com/Dragory/modmailbot/pull/398) by @Eegras) diff --git a/src/data/cfg.jsdoc.js b/src/data/cfg.jsdoc.js index 45dc6ff..2d1a6b2 100644 --- a/src/data/cfg.jsdoc.js +++ b/src/data/cfg.jsdoc.js @@ -29,8 +29,8 @@ * @property {boolean} [typingProxyReverse=false] * @property {boolean} [mentionUserInThreadHeader=false] * @property {boolean} [rolesInThreadHeader=false] - * @property {boolean} [allowStaffEdit=false] - * @property {boolean} [allowStaffDelete=false] + * @property {boolean} [allowStaffEdit=true] + * @property {boolean} [allowStaffDelete=true] * @property {boolean} [enableGreeting=false] * @property {string} [greetingMessage] * @property {string} [greetingAttachment] diff --git a/src/data/cfg.schema.json b/src/data/cfg.schema.json index 64550e6..9431823 100644 --- a/src/data/cfg.schema.json +++ b/src/data/cfg.schema.json @@ -158,11 +158,11 @@ }, "allowStaffEdit": { "$ref": "#/definitions/customBoolean", - "default": false + "default": true }, "allowStaffDelete": { "$ref": "#/definitions/customBoolean", - "default": false + "default": true }, "enableGreeting": {