events: Remove accidental duplicate constructor

This commit is contained in:
Jonas Platte 2021-05-17 00:03:42 +02:00
parent d7d449656c
commit 62b68966b7
No known key found for this signature in database
GPG Key ID: 7D261D771D915378

View File

@ -78,15 +78,3 @@ impl TryFrom<RelatesToJsonRepr> for Relation {
}
}
}
impl ReactionEventContent {
/// Create a new reaction.
///
/// # Arguments
///
/// * `event_id` - The id of the event we are reacting to.
/// * `emoji` - The emoji that indicates the reaction that is being applied.
pub fn new(event_id: EventId, emoji: String) -> Self {
ReactionEventContent { relation: Relation { event_id, emoji } }
}
}