fix(Message): Ensure channel is defined for clean content (#10681)

fix(Message): ensure channel is defined for clean content

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
Jiralite
2025-01-04 17:19:56 +00:00
committed by GitHub
parent 28a2503845
commit 1986c2d2a8

View File

@@ -563,7 +563,7 @@ class Message extends Base {
*/ */
get cleanContent() { get cleanContent() {
// eslint-disable-next-line eqeqeq // eslint-disable-next-line eqeqeq
return this.content != null ? cleanContent(this.content, this.channel) : null; return this.content != null && this.channel ? cleanContent(this.content, this.channel) : null;
} }
/** /**