mirror of
https://github.com/youwen5/iamb.git
synced 2025-06-20 13:49:52 -07:00
Bump matrix-sdk dependency to 0.10.0 (#397)
This commit is contained in:
parent
6529e61963
commit
93502f9993
6 changed files with 656 additions and 284 deletions
|
@ -419,7 +419,7 @@ impl RoomState {
|
|||
// Try creating the room alias on the server.
|
||||
let alias_create_req =
|
||||
CreateAliasRequest::new(orai.clone(), room.room_id().into());
|
||||
if let Err(e) = client.send(alias_create_req, None).await {
|
||||
if let Err(e) = client.send(alias_create_req).await {
|
||||
if let Some(ClientApiErrorKind::Unknown) = e.client_api_error_kind() {
|
||||
// Ignore when it already exists.
|
||||
} else {
|
||||
|
@ -460,7 +460,7 @@ impl RoomState {
|
|||
|
||||
// If the room alias does not exist on the server, create it
|
||||
let alias_create_req = CreateAliasRequest::new(orai, room.room_id().into());
|
||||
if let Err(e) = client.send(alias_create_req, None).await {
|
||||
if let Err(e) = client.send(alias_create_req).await {
|
||||
if let Some(ClientApiErrorKind::Unknown) = e.client_api_error_kind() {
|
||||
// Ignore when it already exists.
|
||||
} else {
|
||||
|
@ -535,7 +535,7 @@ impl RoomState {
|
|||
.application
|
||||
.worker
|
||||
.client
|
||||
.send(del_req, None)
|
||||
.send(del_req)
|
||||
.await
|
||||
.map_err(IambError::from)?;
|
||||
},
|
||||
|
@ -568,7 +568,7 @@ impl RoomState {
|
|||
.application
|
||||
.worker
|
||||
.client
|
||||
.send(del_req, None)
|
||||
.send(del_req)
|
||||
.await
|
||||
.map_err(IambError::from)?;
|
||||
},
|
||||
|
@ -591,7 +591,7 @@ impl RoomState {
|
|||
let msg = match field {
|
||||
RoomField::History => {
|
||||
let visibility = room.history_visibility();
|
||||
format!("Room history visibility: {visibility}")
|
||||
format!("Room history visibility: {visibility:?}")
|
||||
},
|
||||
RoomField::Id => {
|
||||
let id = room.room_id();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue