@@ -172,7 +172,7 @@ pub enum DateDividerMode {
172
172
/// Configuration for sending an attachment.
173
173
///
174
174
/// Like [`matrix_sdk::attachment::AttachmentConfig`], but instead of the
175
- /// `reply` field, there's only a `replied_to ` event id; it's the timeline
175
+ /// `reply` field, there's only a `in_reply_to ` event id; it's the timeline
176
176
/// deciding to fill the rest of the reply parameters.
177
177
#[ derive( Debug , Default ) ]
178
178
pub struct AttachmentConfig {
@@ -182,7 +182,7 @@ pub struct AttachmentConfig {
182
182
pub caption : Option < String > ,
183
183
pub formatted_caption : Option < FormattedBody > ,
184
184
pub mentions : Option < Mentions > ,
185
- pub replied_to : Option < OwnedEventId > ,
185
+ pub in_reply_to : Option < OwnedEventId > ,
186
186
}
187
187
188
188
impl Timeline {
@@ -346,30 +346,30 @@ impl Timeline {
346
346
pub async fn send_reply (
347
347
& self ,
348
348
content : RoomMessageEventContentWithoutRelation ,
349
- replied_to : OwnedEventId ,
349
+ in_reply_to : OwnedEventId ,
350
350
) -> Result < ( ) , Error > {
351
351
let reply = self
352
- . infer_reply ( Some ( replied_to ) )
352
+ . infer_reply ( Some ( in_reply_to ) )
353
353
. await
354
354
. expect ( "the reply will always be set because we provided a replied-to event id" ) ;
355
355
let content = self . room ( ) . make_reply_event ( content, reply) . await ?;
356
356
self . send ( content. into ( ) ) . await ?;
357
357
Ok ( ( ) )
358
358
}
359
359
360
- /// Given a message or media to send, and an optional `replied_to ` event,
360
+ /// Given a message or media to send, and an optional `in_reply_to ` event,
361
361
/// automatically fills the [`Reply`] information based on the current
362
362
/// timeline focus.
363
- pub ( crate ) async fn infer_reply ( & self , replied_to : Option < OwnedEventId > ) -> Option < Reply > {
363
+ pub ( crate ) async fn infer_reply ( & self , in_reply_to : Option < OwnedEventId > ) -> Option < Reply > {
364
364
// If there's a replied-to event id, the reply is pretty straightforward, and we
365
365
// should only infer the `EnforceThread` based on the current focus.
366
- if let Some ( replied_to ) = replied_to {
366
+ if let Some ( in_reply_to ) = in_reply_to {
367
367
let enforce_thread = if self . controller . is_threaded ( ) {
368
368
EnforceThread :: Threaded ( ReplyWithinThread :: Yes )
369
369
} else {
370
370
EnforceThread :: MaybeThreaded
371
371
} ;
372
- return Some ( Reply { event_id : replied_to , enforce_thread } ) ;
372
+ return Some ( Reply { event_id : in_reply_to , enforce_thread } ) ;
373
373
}
374
374
375
375
let thread_root = self . controller . thread_root ( ) ?;
0 commit comments