Skip to content

Commit

Permalink
fixup! refactor(timeline): factor out in-reply-to updates
Browse files Browse the repository at this point in the history
  • Loading branch information
bnjbvr committed Nov 4, 2024
1 parent 898a6ae commit f8b231a
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions crates/matrix-sdk-ui/src/timeline/event_item/content/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ use ruma::{
},
html::RemoveReplyFallback,
serde::Raw,
OwnedEventId, OwnedUserId, RoomVersionId, UserId,
OwnedEventId, OwnedUserId, UserId,
};
use tracing::{error, trace};

Expand Down Expand Up @@ -337,14 +337,6 @@ impl RepliedToEvent {
}
}

pub(in crate::timeline) fn redact(&self, room_version: &RoomVersionId) -> Self {
Self {
content: self.content.redact(room_version),
sender: self.sender.clone(),
sender_profile: self.sender_profile.clone(),
}
}

/// Try to create a `RepliedToEvent` from a `TimelineEvent` by providing the
/// room.
pub async fn try_from_timeline_event_for_room(
Expand Down

0 comments on commit f8b231a

Please sign in to comment.