feat: add contentPlain helper

This commit is contained in:
izzy
2025-06-04 15:04:58 +01:00
parent e644ceb849
commit 35f95ca0b6
+7
View File
@@ -135,6 +135,13 @@ export class Message {
return this.#collection.getUnderlyingObject(this.id).content ?? "";
}
/**
* Content converted to plain text
*/
get contentPlain(): string {
return this.#collection.client.markdownToText(this.content);
}
/**
* System message content
*/