sdk: Make transaction_id truly optional for send and send_raw

… by removing the parameter and returning a named future with a
builder-style `with_transaction_id` method.
This commit is contained in:
Jonas Platte
2023-10-30 17:31:02 +01:00
committed by Jonas Platte
parent 8a1506206b
commit 463a02a4ef
14 changed files with 213 additions and 141 deletions
+1 -3
View File
@@ -22,9 +22,7 @@ async fn on_room_message(event: OriginalSyncRoomMessageEvent, room: Room) {
println!("sending");
// send our message to the room we found the "!party" command in
// the last parameter is an optional transaction id which we don't
// care about.
room.send(content, None).await.unwrap();
room.send(content).await.unwrap();
println!("message sent");
}