Display <unknown> for unknown room history visibility (#397)
This commit is contained in:
@@ -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::{
|
||||
|
||||
Reference in New Issue
Block a user