Cleanup after rebase

This commit is contained in:
Jonas Platte
2022-05-11 11:57:27 +02:00
parent 40dcc988d6
commit 1fdd1ab23a
4 changed files with 4 additions and 4 deletions

View File

@@ -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"

View File

@@ -164,5 +164,5 @@ impl Client {
}
pub fn gen_transaction_id() -> String {
TransactionId::new().into()
TransactionId::new().to_string()
}

View File

@@ -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 {

View File

@@ -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> {