ffi: remove the Reaction::count field

It's exactly the same as `Reaction::senders`'s length.
This commit is contained in:
Benjamin Bouvier
2024-07-24 21:13:09 +02:00
committed by Benjamin Bouvier
parent 4c76255689
commit 3d40a5c30c
2 changed files with 0 additions and 2 deletions

View File

@@ -269,7 +269,6 @@ impl EncryptedMessage {
#[derive(Clone, uniffi::Record)]
pub struct Reaction {
pub key: String,
pub count: u64,
pub senders: Vec<ReactionSenderData>,
}

View File

@@ -978,7 +978,6 @@ impl EventTimelineItem {
.iter()
.map(|(k, v)| Reaction {
key: k.to_owned(),
count: v.len().try_into().unwrap(),
senders: v
.senders()
.map(|v| ReactionSenderData {