Update ruma
This commit is contained in:
parent
5ca66a6985
commit
27ecab8574
3 changed files with 6 additions and 18 deletions
|
@ -38,12 +38,8 @@ impl EventEmitter for CommandBot {
|
|||
};
|
||||
|
||||
if msg_body.contains("!party") {
|
||||
let content = AnyMessageEventContent::RoomMessage(MessageEventContent::Text(
|
||||
TextMessageEventContent {
|
||||
body: "🎉🎊🥳 let's PARTY!! 🥳🎊🎉".to_string(),
|
||||
formatted: None,
|
||||
relates_to: None,
|
||||
},
|
||||
let content = AnyMessageEventContent::RoomMessage(MessageEventContent::text_plain(
|
||||
"🎉🎊🥳 let's PARTY!! 🥳🎊🎉",
|
||||
));
|
||||
// we clone here to hold the lock for as little time as possible.
|
||||
let room_id = room.read().await.room_id.clone();
|
||||
|
|
|
@ -1945,10 +1945,7 @@ mod test {
|
|||
},
|
||||
assign,
|
||||
directory::Filter,
|
||||
events::{
|
||||
room::message::{MessageEventContent, TextMessageEventContent},
|
||||
AnyMessageEventContent,
|
||||
},
|
||||
events::{room::message::MessageEventContent, AnyMessageEventContent},
|
||||
identifiers::{event_id, room_id, user_id},
|
||||
thirdparty,
|
||||
};
|
||||
|
@ -2490,13 +2487,8 @@ mod test {
|
|||
|
||||
let room_id = room_id!("!testroom:example.org");
|
||||
|
||||
let content = AnyMessageEventContent::RoomMessage(MessageEventContent::Text(
|
||||
TextMessageEventContent {
|
||||
body: "Hello world".to_owned(),
|
||||
relates_to: None,
|
||||
formatted: None,
|
||||
},
|
||||
));
|
||||
let content =
|
||||
AnyMessageEventContent::RoomMessage(MessageEventContent::text_plain("Hello world"));
|
||||
let txn_id = Uuid::new_v4();
|
||||
let response = client
|
||||
.room_send(&room_id, content, Some(txn_id))
|
||||
|
|
|
@ -21,7 +21,7 @@ js_int = "0.1.9"
|
|||
[dependencies.ruma]
|
||||
version = "0.0.1"
|
||||
git = "https://github.com/ruma/ruma"
|
||||
rev = "ee4280cea2f8d24c7f747fd57776fe72d50ce744"
|
||||
rev = "48d1c9747561686e1c5627405780f6de01ee17b1"
|
||||
features = ["client-api", "unstable-pre-spec"]
|
||||
|
||||
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
||||
|
|
Loading…
Reference in a new issue