commit 852a67bca9408f567bb92a96658a97ac138af40f parent fc4944ffc0622e53e944036bef657ed719646d7a Author: n0tr1v <n0tr1v@protonmail.com> Date: Sat, 1 Apr 2023 23:00:55 -0700 simplify code Diffstat:
| M | src/main.rs | | | 15 | +++++++-------- |
1 file changed, 7 insertions(+), 8 deletions(-)
diff --git a/src/main.rs b/src/main.rs @@ -757,14 +757,13 @@ impl LeChatPHPClient { }); loop { - { - app.is_muted = *self.is_muted.lock().unwrap(); - app.show_sys = self.show_sys; - app.display_guest_view = self.display_guest_view; - app.display_hidden_msgs = self.display_hidden_msgs; - app.members_tag = self.config.members_tag.clone(); - app.staffs_tag = self.config.staffs_tag.clone(); - } + app.is_muted = *self.is_muted.lock().unwrap(); + app.show_sys = self.show_sys; + app.display_guest_view = self.display_guest_view; + app.display_hidden_msgs = self.display_hidden_msgs; + app.members_tag = self.config.members_tag.clone(); + app.staffs_tag = self.config.staffs_tag.clone(); + // Draw UI terminal.draw(|f| { draw_terminal_frame(f, &mut app, &messages, &users, &self.base_client.username);