mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-04-26 10:11:10 -04:00
ffi: remove the Reaction::count field
It's exactly the same as `Reaction::senders`'s length.
This commit is contained in:
committed by
Benjamin Bouvier
parent
4c76255689
commit
3d40a5c30c
@@ -269,7 +269,6 @@ impl EncryptedMessage {
|
||||
#[derive(Clone, uniffi::Record)]
|
||||
pub struct Reaction {
|
||||
pub key: String,
|
||||
pub count: u64,
|
||||
pub senders: Vec<ReactionSenderData>,
|
||||
}
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user