Skip to content

Commit 0c49598

Browse files
committed
Resolve close_on_leave_reason not properly working
1 parent 323a557 commit 0c49598

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ however, insignificant breaking changes do not guarantee a major version bump, s
2020
- UnicodeEncodeError will no longer be raised on Windows. ([PR #3043](https://github.com/kyb3r/modmail/pull/3043))
2121
- Notifications are no longer duplicated when using both `?notify` and `subscribe`. ([PR #3015](https://github.com/kyb3r/modmail/pull/3015))
2222
- `?contact` now works properly with both category and silent. ([GH #3076](https://github.com/kyb3r/modmail/issues/3076))
23+
- Resolves `close_on_leave_reason` not properly working when `close_on_leave` is enabled. ([GH #3075](https://github.com/kyb3r/modmail/issues/3075))
2324

2425
## Internal
2526

core/thread.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ async def _close(self, closer, silent=False, delete_channel=True, message=None,
414414
"title": match_title(self.channel.topic),
415415
"closed_at": str(datetime.utcnow()),
416416
"nsfw": self.channel.nsfw,
417-
"close_message": message if not silent else None,
417+
"close_message": message,
418418
"closer": {
419419
"id": str(closer.id),
420420
"name": closer.name,

0 commit comments

Comments
 (0)