We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
flags
1 parent e546b28 commit 528651bCopy full SHA for 528651b
test/example_data.dart
@@ -196,7 +196,7 @@ DmMessage dmMessage({
196
List<MessageFlag>? flags,
197
}) {
198
assert(!to.any((user) => user.userId == from.userId));
199
- return DmMessage.fromJson({
+ return DmMessage.fromJson(deepToJson({
200
..._messagePropertiesBase,
201
..._messagePropertiesFromSender(from),
202
..._messagePropertiesFromContent(content, contentMarkdown),
@@ -210,7 +210,7 @@ DmMessage dmMessage({
210
'subject': '',
211
'timestamp': timestamp ?? 1678139636,
212
'type': 'private',
213
- });
+ }) as Map<String, dynamic>);
214
}
215
216
Reaction unicodeEmojiReaction = Reaction(
0 commit comments