Add MSC4391 support

Fixes #133
This commit is contained in:
Henry Hiles 2026-11-03 13:12:58 -05:00
commit 3fc33a5ac9
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs

View file

@ -1,4 +1,5 @@
import "package:freezed_annotation/freezed_annotation.dart";
import "package:nexus/models/content/bot_command.dart";
import "package:nexus/models/info/audio.dart";
import "package:nexus/models/content/content.dart";
import "package:nexus/models/info/file.dart";
@ -24,6 +25,7 @@ sealed class MessageContent extends Content with _$MessageContent {
@JsonKey(unknownEnumValue: JsonKey.nullForUndefinedEnumValue)
MessageFormat? format,
String? formattedBody,
@JsonKey(name: "org.matrix.msc4391.command") BotCommandInput? botCommand,
}) = TextMessageContent;
@FreezedUnionValue("m.notice")