mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-17 04:58:41 -04:00
Cleanup after rebase
This commit is contained in:
@@ -24,7 +24,7 @@ anyhow = "1.0.51"
|
||||
extension-trait = "1.0.1"
|
||||
futures-core = "0.3.17"
|
||||
futures-util = { version = "0.3.17", default-features = false }
|
||||
matrix-sdk = { path = "../matrix-sdk", features = ["markdown"] }
|
||||
matrix-sdk = { path = "../matrix-sdk", features = ["experimental-timeline", "markdown"] }
|
||||
once_cell = "1.10.0"
|
||||
parking_lot = "0.12.0"
|
||||
sanitize-filename-reader-friendly = "2.2.1"
|
||||
|
||||
@@ -164,5 +164,5 @@ impl Client {
|
||||
}
|
||||
|
||||
pub fn gen_transaction_id() -> String {
|
||||
TransactionId::new().into()
|
||||
TransactionId::new().to_string()
|
||||
}
|
||||
|
||||
@@ -154,7 +154,7 @@ pub fn sync_event_to_message(sync_event: SyncRoomEvent) -> Option<Arc<AnyMessage
|
||||
body: m.content.body().to_owned(),
|
||||
sender: m.sender.to_string(),
|
||||
origin_server_ts: m.origin_server_ts.as_secs().into(),
|
||||
transaction_id: m.unsigned.transaction_id.map(Into::into),
|
||||
transaction_id: m.unsigned.transaction_id.map(|txn_id| txn_id.to_string()),
|
||||
});
|
||||
|
||||
match m.content.msgtype {
|
||||
|
||||
@@ -47,7 +47,7 @@ impl Room {
|
||||
|
||||
pub fn display_name(&self) -> Result<String> {
|
||||
let r = self.room.clone();
|
||||
RUNTIME.block_on(async move { Ok(r.display_name().await?) })
|
||||
RUNTIME.block_on(async move { Ok(r.display_name().await?.to_string()) })
|
||||
}
|
||||
|
||||
pub fn topic(&self) -> Option<String> {
|
||||
|
||||
Reference in New Issue
Block a user