File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed
bindings/matrix-sdk-ffi/src/timeline Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -488,8 +488,15 @@ impl Timeline {
488488 ///
489489 /// Returns whether the edit did happen. It can only return false for
490490 /// local events that are being processed.
491- pub async fn edit ( & self , id : String , new_content : EditedContent ) -> Result < bool , ClientError > {
492- self . inner . edit_by_id ( & ( id. into ( ) ) , new_content. try_into ( ) ?) . await . map_err ( Into :: into)
491+ pub async fn edit (
492+ & self ,
493+ event_or_transaction_id : String ,
494+ new_content : EditedContent ,
495+ ) -> Result < bool , ClientError > {
496+ self . inner
497+ . edit_by_id ( & ( event_or_transaction_id. into ( ) ) , new_content. try_into ( ) ?)
498+ . await
499+ . map_err ( Into :: into)
493500 }
494501
495502 pub async fn send_location (
@@ -596,10 +603,13 @@ impl Timeline {
596603 /// Will return an error if the event couldn't be redacted.
597604 pub async fn redact_event (
598605 & self ,
599- id : String ,
606+ event_or_transaction_id : String ,
600607 reason : Option < String > ,
601608 ) -> Result < ( ) , ClientError > {
602- self . inner . redact_by_id ( & ( id. into ( ) ) , reason. as_deref ( ) ) . await . map_err ( Into :: into)
609+ self . inner
610+ . redact_by_id ( & ( event_or_transaction_id. into ( ) ) , reason. as_deref ( ) )
611+ . await
612+ . map_err ( Into :: into)
603613 }
604614
605615 /// Load the reply details for the given event id.
You can’t perform that action at this time.
0 commit comments