mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
refactor: Fix errors in admin/processor.rs
This commit is contained in:
@@ -16,8 +16,8 @@ use futures::{AsyncWriteExt, future::FutureExt, io::BufWriter};
|
|||||||
use ruma::{
|
use ruma::{
|
||||||
EventId,
|
EventId,
|
||||||
events::{
|
events::{
|
||||||
relation::InReplyTo,
|
relation::{InReplyTo, Reply},
|
||||||
room::message::{Relation::Reply, RoomMessageEventContent},
|
room::message::{Relation, RoomMessageEventContent},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
use service::{
|
use service::{
|
||||||
@@ -277,9 +277,8 @@ fn reply(
|
|||||||
mut content: RoomMessageEventContent,
|
mut content: RoomMessageEventContent,
|
||||||
reply_id: Option<&EventId>,
|
reply_id: Option<&EventId>,
|
||||||
) -> RoomMessageEventContent {
|
) -> RoomMessageEventContent {
|
||||||
content.relates_to = reply_id.map(|event_id| Reply {
|
content.relates_to =
|
||||||
in_reply_to: InReplyTo { event_id: event_id.to_owned() },
|
reply_id.map(|event_id| Relation::Reply(Reply::new(InReplyTo::new(event_id.to_owned()))));
|
||||||
});
|
|
||||||
|
|
||||||
content
|
content
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user