Skip to content

Commit

Permalink
Fix: Let's default to Synapse's default message when deleting a room …
Browse files Browse the repository at this point in the history
…without a message
  • Loading branch information
Yoric committed Aug 17, 2021
1 parent b60f503 commit dd6c06e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mjolnir.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
});
}
}

0 comments on commit dd6c06e

Please sign in to comment.