Skip to content

Commit 342dbec

Browse files
authored
[IMPROVE] Add support for ignoreDiscussion param on room.cleanHistory endpoint RocketChat#21652
1 parent ff6a8ec commit 342dbec

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

app/api/server/v1/rooms.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ API.v1.addRoute('rooms.cleanHistory', { authRequired: true }, {
203203
excludePinned: [true, 'true', 1, '1'].includes(this.bodyParams.excludePinned),
204204
filesOnly: [true, 'true', 1, '1'].includes(this.bodyParams.filesOnly),
205205
ignoreThreads: [true, 'true', 1, '1'].includes(this.bodyParams.ignoreThreads),
206+
ignoreDiscussion: [true, 'true', 1, '1'].includes(this.bodyParams.ignoreDiscussion),
206207
fromUsers: this.bodyParams.users,
207208
}));
208209

0 commit comments

Comments
 (0)