Fix: Let's default to Synapse's default message when deleting a room without a message

This commit is contained in:
David Teller 2021-08-17 17:20:31 +02:00
parent b60f503e2e
commit dd6c06eae5

View File

@ -655,7 +655,7 @@ export class Mjolnir {
return await this.client.doRequest("DELETE", endpoint, null, {
new_room_user_id: await this.client.getUserId(),
block: true,
message: message || "This room was shutdown by a moderator"
message: message /* If `undefined`, we'll use Synapse's default message. */
});
}
}