markdown support for talk messages

This commit is contained in:
2026-08-16 21:35:41 +02:00
parent bd83a88e70
commit 02a7b87b5b
14 changed files with 379 additions and 19 deletions
@@ -42,6 +42,11 @@ class GetChatResponseObject {
Map<String, RichObjectString>? messageParameters;
GetChatResponseObject? parent;
/// Whether the server flagged this message to be rendered as Markdown
/// (capability `markdown-messages`). Absent on older servers/messages, in
/// which case it stays `false` and the body renders as plain text.
bool markdown;
GetChatResponseObject(
this.id,
this.token,
@@ -57,8 +62,9 @@ class GetChatResponseObject {
this.messageParameters,
this.reactions,
this.reactionsSelf,
this.parent,
);
this.parent, [
this.markdown = false,
]);
factory GetChatResponseObject.fromJson(Map<String, dynamic> json) =>
_$GetChatResponseObjectFromJson(json);