mirror of
https://github.com/stoatchat/javascript-client-sdk.git
synced 2026-07-16 07:04:24 -04:00
feat: add contentPlain helper
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user