Enable !edit and !delete by default

cshd
Dragory 2020-08-17 00:52:24 +03:00
parent c437634a18
commit 099b5f9616
No known key found for this signature in database
GPG Key ID: 5F387BA66DF8AAC1
3 changed files with 5 additions and 4 deletions

View File

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

View File

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

View File

@ -158,11 +158,11 @@
},
"allowStaffEdit": {
"$ref": "#/definitions/customBoolean",
"default": false
"default": true
},
"allowStaffDelete": {
"$ref": "#/definitions/customBoolean",
"default": false
"default": true
},
"enableGreeting": {