add route room delete

This commit is contained in:
grimhilt
2023-05-17 18:14:25 +02:00
parent 7be2e84691
commit 2cae8f12a7
8 changed files with 44 additions and 12 deletions

View File

@@ -23,6 +23,7 @@ export default class Room {
return this;
}
// check if the room have threads or messages
async shouldDelete(): Promise<boolean> {
if (!this._roomId) {
throw "shouldDelete needs to have a roomId set.";