diff --git a/crates/core/models/src/v0/messages.rs b/crates/core/models/src/v0/messages.rs index 438d8b26..b5ac5e6b 100644 --- a/crates/core/models/src/v0/messages.rs +++ b/crates/core/models/src/v0/messages.rs @@ -1,8 +1,10 @@ -use std::time::SystemTime; +use std::{ + collections::{HashMap, HashSet}, + time::SystemTime, +}; use revolt_config::config; -use indexmap::{IndexMap, IndexSet}; use iso8601_timestamp::Timestamp; use super::{Embed, File, MessageWebhook, User, Webhook}; @@ -45,8 +47,8 @@ auto_derived_partial!( #[serde(skip_serializing_if = "Option::is_none")] pub replies: Option>, /// Hashmap of emoji IDs to array of user IDs - #[serde(skip_serializing_if = "IndexMap::is_empty", default)] - pub reactions: IndexMap>, + #[serde(skip_serializing_if = "HashMap::is_empty", default)] + pub reactions: HashMap>, /// Information about how this message should be interacted with #[serde(skip_serializing_if = "Interactions::is_default", default)] pub interactions: Interactions, @@ -105,7 +107,7 @@ auto_derived!( pub struct Interactions { /// Reactions which should always appear and be distinct #[serde(skip_serializing_if = "Option::is_none", default)] - pub reactions: Option>, + pub reactions: Option>, /// Whether reactions should be restricted to the given list /// /// Can only be set to true if reactions list is of at least length 1