diff options
Diffstat (limited to 'ui/src/components/mail/view')
-rw-r--r-- | ui/src/components/mail/view/thread.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/src/components/mail/view/thread.rs b/ui/src/components/mail/view/thread.rs index 0171bdc4..7c74c0a0 100644 --- a/ui/src/components/mail/view/thread.rs +++ b/ui/src/components/mail/view/thread.rs @@ -869,6 +869,9 @@ impl fmt::Display for ThreadView { impl Component for ThreadView { fn draw(&mut self, grid: &mut CellBuffer, area: Area, context: &mut Context) { let total_cols = width!(area); + if self.entries.is_empty() { + return; + } /* If user has selected another mail to view, change to it */ if self.new_expanded_pos != self.expanded_pos { |