[NEW][APPS] Ability for Rocket.Chat Apps to delete rooms (#21875)

* add bridge method to delete rooms

* fix no-trailling-spaces

Co-authored-by: Thassio Victor <tvmcarvalho@gmail.com>
pull/21959/head^2
Lucas Sartor Chauvin 4 years ago committed by GitHub
parent 9f61f611b1
commit d46177dc59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      app/apps/server/bridges/rooms.js

@ -121,6 +121,11 @@ export class AppRoomBridge {
}
}
async delete(roomId, appId) {
this.orch.debugLog(`The App ${ appId } is deleting a room.`);
Rooms.removeById(roomId);
}
async createDiscussion(room, parentMessage = null, reply = '', members = [], appId) {
this.orch.debugLog(`The App ${ appId } is creating a new discussion.`, room);

Loading…
Cancel
Save