ui: Make public all timeline module errors

A few were missing in the public API like SendEventError and RedactEventError and their dependencies.
This uses a wildcard because it should be rare to not want to expose an error type.

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
This commit is contained in:
Kévin Commaille
2024-06-26 15:41:14 +02:00
committed by Benjamin Bouvier
parent fefdfd2e4b
commit 28d6401c4f

View File

@@ -60,12 +60,7 @@ use ruma::{
use thiserror::Error;
use tracing::{error, instrument, trace, warn};
use self::{
error::{RedactEventError, SendEventError},
event_item::EventTimelineItemKind,
futures::SendAttachment,
util::rfind_event_item,
};
use self::{event_item::EventTimelineItemKind, futures::SendAttachment, util::rfind_event_item};
mod builder;
mod day_dividers;
@@ -90,7 +85,7 @@ mod virtual_item;
pub use self::{
builder::TimelineBuilder,
error::{Error, PaginationError, UnsupportedEditItem, UnsupportedReplyItem},
error::*,
event_item::{
AnyOtherFullStateEventContent, BundledReactions, EncryptedMessage, EventItemOrigin,
EventSendState, EventTimelineItem, InReplyToDetails, MemberProfileChange, MembershipChange,