Migrate rooms list to AsyncWidget

This commit is contained in:
Joscha 2023-04-12 13:30:25 +02:00
parent adc70ad233
commit ead4fa7c8a
2 changed files with 114 additions and 86 deletions

View file

@ -193,7 +193,7 @@ impl Ui {
};
let widget = match self.mode {
Mode::Main => WidgetWrapper::new(self.rooms.widget().await).boxed_async(),
Mode::Main => self.rooms.widget().await,
Mode::Log => {
WidgetWrapper::new(self.log_chat.widget(String::new(), true)).boxed_async()
}