mirror of
https://github.com/youwen5/iamb.git
synced 2025-06-19 13:19:51 -07:00
Display <unknown>
for unknown room history visibility (#397)
This commit is contained in:
parent
93502f9993
commit
9fce71f896
2 changed files with 3 additions and 2 deletions
|
@ -591,7 +591,8 @@ impl RoomState {
|
|||
let msg = match field {
|
||||
RoomField::History => {
|
||||
let visibility = room.history_visibility();
|
||||
format!("Room history visibility: {visibility:?}")
|
||||
let visibility = visibility.as_ref().map(|v| v.as_str());
|
||||
format!("Room history visibility: {}", visibility.unwrap_or("<unknown>"))
|
||||
},
|
||||
RoomField::Id => {
|
||||
let id = room.room_id();
|
||||
|
|
|
@ -21,12 +21,12 @@ use tracing::{error, warn};
|
|||
use url::Url;
|
||||
|
||||
use matrix_sdk::{
|
||||
authentication::matrix::MatrixSession,
|
||||
config::{RequestConfig, SyncSettings},
|
||||
deserialized_responses::DisplayName,
|
||||
encryption::verification::{SasVerification, Verification},
|
||||
encryption::{BackupDownloadStrategy, EncryptionSettings},
|
||||
event_handler::Ctx,
|
||||
authentication::matrix::MatrixSession,
|
||||
reqwest,
|
||||
room::{Messages, MessagesOptions, Room as MatrixRoom, RoomMember},
|
||||
ruma::{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue