mirror of
https://github.com/youwen5/iamb.git
synced 2025-06-19 21:29:52 -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 {
|
let msg = match field {
|
||||||
RoomField::History => {
|
RoomField::History => {
|
||||||
let visibility = room.history_visibility();
|
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 => {
|
RoomField::Id => {
|
||||||
let id = room.room_id();
|
let id = room.room_id();
|
||||||
|
|
|
@ -21,12 +21,12 @@ use tracing::{error, warn};
|
||||||
use url::Url;
|
use url::Url;
|
||||||
|
|
||||||
use matrix_sdk::{
|
use matrix_sdk::{
|
||||||
|
authentication::matrix::MatrixSession,
|
||||||
config::{RequestConfig, SyncSettings},
|
config::{RequestConfig, SyncSettings},
|
||||||
deserialized_responses::DisplayName,
|
deserialized_responses::DisplayName,
|
||||||
encryption::verification::{SasVerification, Verification},
|
encryption::verification::{SasVerification, Verification},
|
||||||
encryption::{BackupDownloadStrategy, EncryptionSettings},
|
encryption::{BackupDownloadStrategy, EncryptionSettings},
|
||||||
event_handler::Ctx,
|
event_handler::Ctx,
|
||||||
authentication::matrix::MatrixSession,
|
|
||||||
reqwest,
|
reqwest,
|
||||||
room::{Messages, MessagesOptions, Room as MatrixRoom, RoomMember},
|
room::{Messages, MessagesOptions, Room as MatrixRoom, RoomMember},
|
||||||
ruma::{
|
ruma::{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue