From 528651b364e5b549850deb344ef53bce609b71a2 Mon Sep 17 00:00:00 2001 From: Chris Bobbe Date: Thu, 19 Oct 2023 17:47:03 -0400 Subject: [PATCH] tests: Fix eg.dmMessage's `flags` argument after converting to enum The conversion to an enum was done in 9829f60ec. --- test/example_data.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/example_data.dart b/test/example_data.dart index 6eb111e0a6..443209f07e 100644 --- a/test/example_data.dart +++ b/test/example_data.dart @@ -196,7 +196,7 @@ DmMessage dmMessage({ List? flags, }) { assert(!to.any((user) => user.userId == from.userId)); - return DmMessage.fromJson({ + return DmMessage.fromJson(deepToJson({ ..._messagePropertiesBase, ..._messagePropertiesFromSender(from), ..._messagePropertiesFromContent(content, contentMarkdown), @@ -210,7 +210,7 @@ DmMessage dmMessage({ 'subject': '', 'timestamp': timestamp ?? 1678139636, 'type': 'private', - }); + }) as Map); } Reaction unicodeEmojiReaction = Reaction(