Skip to content

Commit

Permalink
timeline: re-export ReactionsByKeyBySender and ReactionInfo types (
Browse files Browse the repository at this point in the history
…#3787)

This tiny change allows one to easily name the return type of
`EventTimelineItem::reactions()` such that you can use it in a function
signature. Same goes for the `ReactionInfo` type.

I think this was likely just a small oversight in recent changes to the
reactions API, so hopefully it's not controversial.

Without this, it's impossible to write a function that uses
`ReactionsByKeyBySender` or `ReactionInfo` in the signature.

Signed-off-by: Kevin Boos <[email protected]>
  • Loading branch information
kevinaboos authored Aug 1, 2024
1 parent bfa069d commit 7c5c5a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/matrix-sdk-ui/src/timeline/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ pub use self::{
event_item::{
AnyOtherFullStateEventContent, EncryptedMessage, EventItemOrigin, EventSendState,
EventTimelineItem, InReplyToDetails, MemberProfileChange, MembershipChange, Message,
OtherState, Profile, RepliedToEvent, RoomMembershipChange, Sticker, TimelineDetails,
TimelineEventItemId, TimelineItemContent,
OtherState, Profile, ReactionInfo, ReactionsByKeyBySender, RepliedToEvent,
RoomMembershipChange, Sticker, TimelineDetails, TimelineEventItemId, TimelineItemContent,
},
event_type_filter::TimelineEventTypeFilter,
inner::default_event_filter,
Expand Down

0 comments on commit 7c5c5a8

Please sign in to comment.