File tree 1 file changed +9
-9
lines changed
1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -959,19 +959,19 @@ impl Widget for RoomScreen {
959
959
// that its timeline events have been updated in the background.
960
960
if let Event :: Signal = event {
961
961
if let Some ( room_id) = & self . room_id {
962
- if !self . rooms_list ( id ! ( rooms_list) ) . is_room_loaded ( room_id) {
963
- if self . rooms_list ( id ! ( rooms_list) ) . all_known_rooms_loaded ( ) {
964
- self . view
965
- . label ( id ! ( restore_status_label) )
966
- . set_text ( cx, & format ! (
962
+ let rooms_list = self . rooms_list ( id ! ( rooms_list) ) ;
963
+ if !rooms_list. is_room_loaded ( room_id) {
964
+ let status_text = if rooms_list. all_known_rooms_loaded ( ) {
965
+ format ! (
967
966
"Room {} was not found in the homeserver's list of all rooms." ,
968
967
self . room_name
969
- ) ) ;
968
+ )
970
969
} else {
971
- self . view
970
+ "[Placeholder for Spinner]" . to_string ( )
971
+ } ;
972
+ self . view
972
973
. label ( id ! ( restore_status_label) )
973
- . set_text ( cx, "[Placeholder for Spinner]" ) ;
974
- }
974
+ . set_text ( cx, & status_text) ;
975
975
return ;
976
976
}
977
977
}
You can’t perform that action at this time.
0 commit comments